[meld: 48/63] settings: Don't bind sensitivity settings automatically



commit 6f79973b98a92e0a7d32b8b83aefe517cbffa0e2
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Oct 10 09:20:19 2015 +1000

    settings: Don't bind sensitivity settings automatically
    
    We use our automatic settings binding for complex widgets, not simple
    actions, so it doesn't make any sense to bind the widget sensitivity to
    the setting writability in our case.

 meld/settings.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/meld/settings.py b/meld/settings.py
index 51f2b79..04e49fc 100644
--- a/meld/settings.py
+++ b/meld/settings.py
@@ -118,10 +118,11 @@ def create_settings(uninstalled=False):
 
 def bind_settings(obj):
     global settings
+    bind_flags = (
+        Gio.SettingsBindFlags.DEFAULT | Gio.SettingsBindFlags.NO_SENSITIVITY)
     for binding in getattr(obj, '__gsettings_bindings__', ()):
         settings_id, property_id = binding
-        settings.bind(
-            settings_id, obj, property_id, Gio.SettingsBindFlags.DEFAULT)
+        settings.bind(settings_id, obj, property_id, bind_flags)
 
 
 settings = None


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