Commit 27f5c1fd authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

prefs: use Gtk/DecorationLayout only under GNOME-Flashback

https://bugzilla.gnome.org/show_bug.cgi?id=757044
parent 0eca258b
......@@ -813,8 +813,14 @@ gtk_decoration_layout_changed (GtkSettings *settings,
static void
init_gtk_decoration_layout (void)
{
const gchar *current_desktop;
GtkSettings *settings;
current_desktop = g_getenv ("XDG_CURRENT_DESKTOP");
if (!current_desktop || !strstr (current_desktop, "GNOME-Flashback"))
return;
settings = gtk_settings_get_default ();
g_signal_connect (settings, "notify::gtk-decoration-layout",
......@@ -1376,16 +1382,20 @@ button_layout_handler (GVariant *value,
gpointer *result,
gpointer data)
{
#if 0
const gchar *current_desktop;
const gchar *string_value;
*result = NULL; /* ignored */
current_desktop = g_getenv ("XDG_CURRENT_DESKTOP");
if (current_desktop && strstr (current_desktop, "GNOME-Flashback"))
return TRUE;
string_value = g_variant_get_string (value, NULL);
if (string_value)
update_button_layout (string_value);
#endif
*result = NULL; /* ignored */
return TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment