Commit 6f79973b authored by Kai Willadsen's avatar Kai Willadsen

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.
parent 06783e07
......@@ -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_id, obj, property_id, Gio.SettingsBindFlags.DEFAULT)
settings.bind(settings_id, obj, property_id, bind_flags)
settings = None
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