aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-09-21 22:43:25 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-21 22:43:25 +0800
commit66e77897b5bb3b32d95268b1de12493b1dd5b140 (patch)
treefbbfeeeb0d2e392771a570d2577056dc182e7962
parent67c036a33910d51e2703bb86840fd8729decf4b1 (diff)
downloadgsoc2013-evolution-66e77897b5bb3b32d95268b1de12493b1dd5b140.tar
gsoc2013-evolution-66e77897b5bb3b32d95268b1de12493b1dd5b140.tar.gz
gsoc2013-evolution-66e77897b5bb3b32d95268b1de12493b1dd5b140.tar.bz2
gsoc2013-evolution-66e77897b5bb3b32d95268b1de12493b1dd5b140.tar.lz
gsoc2013-evolution-66e77897b5bb3b32d95268b1de12493b1dd5b140.tar.xz
gsoc2013-evolution-66e77897b5bb3b32d95268b1de12493b1dd5b140.tar.zst
gsoc2013-evolution-66e77897b5bb3b32d95268b1de12493b1dd5b140.zip
Port calendar preferences to GSettings
-rw-r--r--modules/calendar/e-calendar-preferences.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/calendar/e-calendar-preferences.c b/modules/calendar/e-calendar-preferences.c
index 85eddd9736..5578f39a2c 100644
--- a/modules/calendar/e-calendar-preferences.c
+++ b/modules/calendar/e-calendar-preferences.c
@@ -329,13 +329,13 @@ static void
notify_with_tray_toggled (GtkToggleButton *toggle,
ECalendarPreferences *prefs)
{
- GConfClient *gconf;
+ GSettings *settings;
g_return_if_fail (toggle != NULL);
- gconf = gconf_client_get_default ();
- gconf_client_set_bool (gconf, "/apps/evolution/calendar/notify/notify_with_tray", gtk_toggle_button_get_active (toggle), NULL);
- g_object_unref (gconf);
+ settings = g_settings_new ("org.gnome.evolution.calendar");
+ g_settings_set_boolean (settings, "notify-with-tray", gtk_toggle_button_get_active (toggle));
+ g_object_unref (settings);
}
static void
@@ -454,7 +454,7 @@ initialize_selection (ESourceSelector *selector,
static void
show_alarms_config (ECalendarPreferences *prefs)
{
- GConfClient *gconf;
+ GSettings *settings;
if (e_cal_client_get_sources (&prefs->alarms_list, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, NULL)) {
prefs->alarm_list_widget = e_source_selector_new (prefs->alarms_list);
@@ -464,9 +464,9 @@ show_alarms_config (ECalendarPreferences *prefs)
initialize_selection (E_SOURCE_SELECTOR (prefs->alarm_list_widget), prefs->alarms_list);
}
- gconf = gconf_client_get_default ();
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (prefs->notify_with_tray), gconf_client_get_bool (gconf, "/apps/evolution/calendar/notify/notify_with_tray", NULL));
- g_object_unref (gconf);
+ settings = g_settings_new ("org.gnome.evolution.calendar");
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (prefs->notify_with_tray), g_settings_get_boolean (settings, "notify-with-tray"));
+ g_object_unref (settings);
}
/* Shows the current config settings in the dialog. */