diff options
Diffstat (limited to 'editor/dconf-model.vala')
-rw-r--r-- | editor/dconf-model.vala | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala index 46afa3e..fc772a6 100644 --- a/editor/dconf-model.vala +++ b/editor/dconf-model.vala @@ -52,7 +52,7 @@ public class Key : GLib.Object _value = value; try { - model.client.write(full_name, value); + model.client.write_sync(full_name, value); } catch (GLib.Error e) { @@ -143,7 +143,7 @@ public class Key : GLib.Object _value = null; try { - model.client.write(full_name, null); + model.client.write_sync(full_name, null); } catch (GLib.Error e) { @@ -582,16 +582,10 @@ public class SettingsModel: GLib.Object, Gtk.TreeModel public SettingsModel() { - client = new DConf.Client (null, watch_func); + client = new DConf.Client (); + client.changed.connect (watch_func); root = new Directory(this, null, "/", "/"); - try - { - client.watch ("/"); - } - catch (Error e) - { - warning ("Failed to watch all keys: %s", e.message); - } + client.watch_sync ("/"); schemas = new SchemaList(); try |