mirror of
https://github.com/Alcaro/Flips.git
synced 2026-09-07 01:56:07 -05:00
gtk: Disable bits not available in Flatpak
When the FLATPAK macro is defined, this disables bits of the UI for features which won't work in a heavily sandboxed environment.
This commit is contained in:
@@ -994,6 +994,10 @@ int GUIShow(const char * filename)
|
||||
button(0,0, "_Apply Patch", G_CALLBACK(a_ApplyPatch));
|
||||
button(1,0, "_Create Patch", G_CALLBACK(a_CreatePatch));
|
||||
button(0,1, "Apply and _Run", G_CALLBACK(a_ApplyRun));
|
||||
#ifdef FLATPAK
|
||||
gtk_widget_set_sensitive(button, false);
|
||||
gtk_widget_set_tooltip_text(button, "Running in emulators is not available in Flatpak");
|
||||
#endif
|
||||
button(1,1, "_Settings", G_CALLBACK(a_ShowSettings));
|
||||
#undef button
|
||||
|
||||
|
||||
Reference in New Issue
Block a user