diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-11-02 00:40:16 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-11-02 00:40:16 +0800 |
commit | 80937eb544e24b51244f3ade02e69fb7a3157920 (patch) | |
tree | 5864d85a6133fd5434dc8245ac5bfb7292681765 /modules/addressbook/e-book-shell-content.c | |
parent | fa4a42d741fade66d51857fb2653e27e347aef80 (diff) | |
download | gsoc2013-evolution-80937eb544e24b51244f3ade02e69fb7a3157920.tar gsoc2013-evolution-80937eb544e24b51244f3ade02e69fb7a3157920.tar.gz gsoc2013-evolution-80937eb544e24b51244f3ade02e69fb7a3157920.tar.bz2 gsoc2013-evolution-80937eb544e24b51244f3ade02e69fb7a3157920.tar.lz gsoc2013-evolution-80937eb544e24b51244f3ade02e69fb7a3157920.tar.xz gsoc2013-evolution-80937eb544e24b51244f3ade02e69fb7a3157920.tar.zst gsoc2013-evolution-80937eb544e24b51244f3ade02e69fb7a3157920.zip |
Addressbook module GSettings migration
Diffstat (limited to 'modules/addressbook/e-book-shell-content.c')
-rw-r--r-- | modules/addressbook/e-book-shell-content.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/modules/addressbook/e-book-shell-content.c b/modules/addressbook/e-book-shell-content.c index e8f2afd83b..f4c3d74784 100644 --- a/modules/addressbook/e-book-shell-content.c +++ b/modules/addressbook/e-book-shell-content.c @@ -28,7 +28,6 @@ #include <glib/gi18n.h> #include "e-util/e-selection.h" -#include "e-util/gconf-bridge.h" #include "shell/e-shell-utils.h" #include "widgets/misc/e-paned.h" #include "widgets/misc/e-preview-pane.h" @@ -82,23 +81,18 @@ book_shell_content_restore_state_cb (EShellWindow *shell_window, EShellContent *shell_content) { EBookShellContentPrivate *priv; - GConfBridge *bridge; - GObject *object; - const gchar *key; + GSettings *settings; priv = E_BOOK_SHELL_CONTENT (shell_content)->priv; - /* Bind GObject properties to GConf keys. */ + /* Bind GObject properties to GSettings keys. */ - bridge = gconf_bridge_get (); + settings = g_settings_new ("org.gnome.evolution.addressbook"); - object = G_OBJECT (priv->paned); - key = "/apps/evolution/addressbook/display/hpane_position"; - gconf_bridge_bind_property_delayed (bridge, key, object, "hposition"); + g_settings_bind (settings, "hpane-position", priv->paned, "hposition", G_SETTINGS_BIND_DEFAULT); + g_settings_bind (settings, "vpane-position", priv->paned, "vposition", G_SETTINGS_BIND_DEFAULT); - object = G_OBJECT (priv->paned); - key = "/apps/evolution/addressbook/display/vpane_position"; - gconf_bridge_bind_property_delayed (bridge, key, object, "vposition"); + g_object_unref (settings); } static GtkOrientation |