aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-09-21 22:30:48 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-21 22:30:48 +0800
commit5226e534df877dcb10b8f5cbb581764bb679593c (patch)
tree579e8eab62fb2faf65f60c14349736fbfda92a39 /modules/calendar
parent2f76eec65ede46b0b90972db6499b0dd65e5e2ee (diff)
downloadgsoc2013-evolution-5226e534df877dcb10b8f5cbb581764bb679593c.tar
gsoc2013-evolution-5226e534df877dcb10b8f5cbb581764bb679593c.tar.gz
gsoc2013-evolution-5226e534df877dcb10b8f5cbb581764bb679593c.tar.bz2
gsoc2013-evolution-5226e534df877dcb10b8f5cbb581764bb679593c.tar.lz
gsoc2013-evolution-5226e534df877dcb10b8f5cbb581764bb679593c.tar.xz
gsoc2013-evolution-5226e534df877dcb10b8f5cbb581764bb679593c.tar.zst
gsoc2013-evolution-5226e534df877dcb10b8f5cbb581764bb679593c.zip
Port e-memo-shell-view-actions.c to use GSettings
Diffstat (limited to 'modules/calendar')
-rw-r--r--modules/calendar/e-memo-shell-view-actions.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/calendar/e-memo-shell-view-actions.c b/modules/calendar/e-memo-shell-view-actions.c
index d71b893fe3..c7807291f3 100644
--- a/modules/calendar/e-memo-shell-view-actions.c
+++ b/modules/calendar/e-memo-shell-view-actions.c
@@ -863,7 +863,7 @@ e_memo_shell_view_actions_init (EMemoShellView *memo_shell_view)
EPreviewPane *preview_pane;
EWebView *web_view;
GtkActionGroup *action_group;
- GConfBridge *bridge;
+ GSettings *memo_settings;
GtkAction *action;
GObject *object;
const gchar *key;
@@ -922,17 +922,17 @@ e_memo_shell_view_actions_init (EMemoShellView *memo_shell_view)
action_group, lockdown_save_to_disk_popup_entries,
G_N_ELEMENTS (lockdown_save_to_disk_popup_entries));
- /* Bind GObject properties to GConf keys. */
+ /* Bind GObject properties to settings keys. */
- bridge = gconf_bridge_get ();
+ memo_settings = g_settings_new ("org.gnome.evolution.calendar");
object = G_OBJECT (ACTION (MEMO_PREVIEW));
- key = "/apps/evolution/calendar/display/show_memo_preview";
- gconf_bridge_bind_property (bridge, key, object, "active");
+ g_settings_bind (memo_settings, "show-memo-preview", object, "active");
object = G_OBJECT (ACTION (MEMO_VIEW_VERTICAL));
- key = "/apps/evolution/calendar/display/memo_layout";
- gconf_bridge_bind_property (bridge, key, object, "current-value");
+ g_settings_bind (memo_settings, "memo-layout", object, "current-value");
+
+ g_object_unref (G_OBJECT (memo_settings));
/* Fine tuning. */