diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-28 18:05:31 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-28 18:05:31 +0800 |
commit | 2782363bf143089e92f277b844505ef34f46e69c (patch) | |
tree | 28b1f3cafcb28302f7203226afb70cf08f9f9bd6 /modules/mail/e-mail-shell-view-actions.c | |
parent | b3b35231e2ce675202ef9f1a7ccefdc3ab0e0e89 (diff) | |
download | gsoc2013-evolution-2782363bf143089e92f277b844505ef34f46e69c.tar gsoc2013-evolution-2782363bf143089e92f277b844505ef34f46e69c.tar.gz gsoc2013-evolution-2782363bf143089e92f277b844505ef34f46e69c.tar.bz2 gsoc2013-evolution-2782363bf143089e92f277b844505ef34f46e69c.tar.lz gsoc2013-evolution-2782363bf143089e92f277b844505ef34f46e69c.tar.xz gsoc2013-evolution-2782363bf143089e92f277b844505ef34f46e69c.tar.zst gsoc2013-evolution-2782363bf143089e92f277b844505ef34f46e69c.zip |
Mail module has now all basic settings in GSettings
Diffstat (limited to 'modules/mail/e-mail-shell-view-actions.c')
-rw-r--r-- | modules/mail/e-mail-shell-view-actions.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c index 08cdfd81e4..dc94c5c9ed 100644 --- a/modules/mail/e-mail-shell-view-actions.c +++ b/modules/mail/e-mail-shell-view-actions.c @@ -1631,7 +1631,7 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view) EMailView *mail_view; GtkActionGroup *action_group; GtkAction *action; - GConfBridge *bridge; + GSettings *settings; GObject *object; const gchar *key; @@ -1689,17 +1689,17 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view) g_object_set (ACTION (MAIL_SEND_RECEIVE), "is-important", TRUE, NULL); - /* Bind GObject properties for GConf keys. */ + /* Bind GObject properties for GSettings keys. */ - bridge = gconf_bridge_get (); + settings = g_settings_new ("org.gnome.evolution.mail"); object = G_OBJECT (ACTION (MAIL_SHOW_DELETED)); - key = "/apps/evolution/mail/display/show_deleted"; - gconf_bridge_bind_property (bridge, key, object, "active"); + g_settings_bind (settings, "show-deleted", object, "active", G_SETTINGS_BIND_DEFAULT); object = G_OBJECT (ACTION (MAIL_VIEW_VERTICAL)); - key = "/apps/evolution/mail/display/layout"; - gconf_bridge_bind_property (bridge, key, object, "current-value"); + g_settings_bind (settings, "layout", object, "current-value", G_SETTINGS_BIND_DEFAULT); + + g_object_unref (settings); /* Fine tuning. */ |