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:
Adrien Plazas
2020-02-08 14:54:17 +01:00
parent d11d856df9
commit 1004a41f5d

View File

@@ -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