[gnome-tweak-tool] windows: Stop overriding the Gtk/DecorationLayout xsetting



commit 33550a21c1410f11aabde56219088c7d79c2998c
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Sep 28 17:52:12 2014 +0200

    windows: Stop overriding the Gtk/DecorationLayout xsetting
    
    gnome-settings-daemon monitors the button-layout setting and uses
    it to set Gtk/Decoration - unless there's an explicit override.
    In the best case, the override matches the setting and it doesn't
    make any difference, in all other cases it causes client- and
    server-side decorations to go out of sync.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737533

 gtweak/tweaks/tweak_group_windows.py |    2 --
 gtweak/utils.py                      |    3 ---
 2 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_windows.py b/gtweak/tweaks/tweak_group_windows.py
index f410117..bea8208 100644
--- a/gtweak/tweaks/tweak_group_windows.py
+++ b/gtweak/tweaks/tweak_group_windows.py
@@ -30,7 +30,6 @@ class ShowWindowButtons(GSettingsSwitchTweakValue):
 
     def __init__(self, name, value, **options):
         self.value = value
-        self._xsettings = XSettingsOverrides()
         GSettingsSwitchTweakValue.__init__(self,
                                            name,
                                            "org.gnome.desktop.wm.preferences",
@@ -51,7 +50,6 @@ class ShowWindowButtons(GSettingsSwitchTweakValue):
             val = val.replace(self.value+",", "")
 
         self.settings.set_string(self.key_name, val)
-        self._xsettings.set_window_buttons(val.replace(":", "menu:"))
 
 class WindowScalingFactorTweak(Gtk.Box, Tweak):
     def __init__(self, **options):
diff --git a/gtweak/utils.py b/gtweak/utils.py
index a1c30aa..3d20425 100644
--- a/gtweak/utils.py
+++ b/gtweak/utils.py
@@ -235,7 +235,6 @@ class XSettingsOverrides:
     VARIANT_TYPES = {
         'Gtk/ShellShowsAppMenu': GLib.Variant.new_int32,
         'Gtk/EnablePrimaryPaste': GLib.Variant.new_int32,
-        'Gtk/DecorationLayout': GLib.Variant.new_string,
         'Gdk/WindowScalingFactor': GLib.Variant.new_int32,
     }
 
@@ -281,8 +280,6 @@ class XSettingsOverrides:
         self._set_override('Gtk/EnablePrimaryPaste', int(v))
     def get_enable_primary_paste(self):
         return self._get_override('Gtk/EnablePrimaryPaste', True)
-    def set_window_buttons(self, v):
-        self._set_override('Gtk/DecorationLayout', v)
     def set_window_scaling_factor(self, v):
         self._set_override('Gdk/WindowScalingFactor', int(v))
     def get_window_scaling_factor(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]