aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-09-21 23:21:35 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-21 23:21:35 +0800
commit6e7cb87f8783dfca7af2ec40b669344adf77f79f (patch)
treeb31a3105f179984c5fc947da07808013245faf4a /modules/calendar
parentd757ba352a135a81cfb2e638b25d66998dbe1eb9 (diff)
downloadgsoc2013-evolution-6e7cb87f8783dfca7af2ec40b669344adf77f79f.tar
gsoc2013-evolution-6e7cb87f8783dfca7af2ec40b669344adf77f79f.tar.gz
gsoc2013-evolution-6e7cb87f8783dfca7af2ec40b669344adf77f79f.tar.bz2
gsoc2013-evolution-6e7cb87f8783dfca7af2ec40b669344adf77f79f.tar.lz
gsoc2013-evolution-6e7cb87f8783dfca7af2ec40b669344adf77f79f.tar.xz
gsoc2013-evolution-6e7cb87f8783dfca7af2ec40b669344adf77f79f.tar.zst
gsoc2013-evolution-6e7cb87f8783dfca7af2ec40b669344adf77f79f.zip
Port e-task-shell-view-actions to GSettings
Diffstat (limited to 'modules/calendar')
-rw-r--r--modules/calendar/e-task-shell-view-actions.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/calendar/e-task-shell-view-actions.c b/modules/calendar/e-task-shell-view-actions.c
index 2fe28494ac..beb81730c3 100644
--- a/modules/calendar/e-task-shell-view-actions.c
+++ b/modules/calendar/e-task-shell-view-actions.c
@@ -1062,7 +1062,7 @@ e_task_shell_view_actions_init (ETaskShellView *task_shell_view)
EPreviewPane *preview_pane;
EWebView *web_view;
GtkActionGroup *action_group;
- GConfBridge *bridge;
+ GSettings *settings;
GtkAction *action;
GObject *object;
const gchar *key;
@@ -1121,17 +1121,17 @@ e_task_shell_view_actions_init (ETaskShellView *task_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 ();
+ settings = g_settings_new ("org.gnome.evolution.calendar");
object = G_OBJECT (ACTION (TASK_PREVIEW));
- key = "/apps/evolution/calendar/display/show_task_preview";
- gconf_bridge_bind_property (bridge, key, object, "active");
+ g_settings_bind (settings, "show-task-preview", object, "active");
object = G_OBJECT (ACTION (TASK_VIEW_VERTICAL));
- key = "/apps/evolution/calendar/display/task_layout";
- gconf_bridge_bind_property (bridge, key, object, "current-value");
+ g_settings_bind (settings, "task-layout", "current-value");
+
+ g_object_unref (G_OBJECT (settings));
/* Fine tuning. */