aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/importers
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-10-10 23:13:18 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-10-10 23:13:18 +0800
commit2f62d91630f58325820712e9c21439b7fae055ce (patch)
tree794347a13618b5f7a18775617449fe2dfb712e42 /calendar/importers
parent56a166bb42bd55216a489c0b850ddd6bca2a3cd5 (diff)
downloadgsoc2013-evolution-2f62d91630f58325820712e9c21439b7fae055ce.tar
gsoc2013-evolution-2f62d91630f58325820712e9c21439b7fae055ce.tar.gz
gsoc2013-evolution-2f62d91630f58325820712e9c21439b7fae055ce.tar.bz2
gsoc2013-evolution-2f62d91630f58325820712e9c21439b7fae055ce.tar.lz
gsoc2013-evolution-2f62d91630f58325820712e9c21439b7fae055ce.tar.xz
gsoc2013-evolution-2f62d91630f58325820712e9c21439b7fae055ce.tar.zst
gsoc2013-evolution-2f62d91630f58325820712e9c21439b7fae055ce.zip
Port calendar importer to GSettings
Diffstat (limited to 'calendar/importers')
-rw-r--r--calendar/importers/icalendar-importer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c
index 96fce86260..3887780ed7 100644
--- a/calendar/importers/icalendar-importer.c
+++ b/calendar/importers/icalendar-importer.c
@@ -1023,13 +1023,13 @@ gnome_calendar_getwidget (EImport *ei,
EImportImporter *im)
{
GtkWidget *hbox, *w;
- GConfClient *gconf;
+ GSettings *settings;
gboolean done_cal, done_tasks;
- gconf = gconf_client_get_default ();
- done_cal = gconf_client_get_bool (gconf, "/apps/evolution/importer/gnome-calendar/calendar", NULL);
- done_tasks = gconf_client_get_bool (gconf, "/apps/evolution/importer/gnome-calendar/tasks", NULL);
- g_object_unref (gconf);
+ settings = g_settings_new ("org.gnome.evolution.importer");
+ done_cal = g_settings_get_boolean (settings, "gnome-calendar-done-calendar");
+ done_tasks = g_settings_get_boolean (settings, "gnome-calendar-done-tasks");
+ g_object_unref (settings);
g_datalist_set_data(&target->data, "gnomecal-do-cal", GINT_TO_POINTER(!done_cal));
g_datalist_set_data(&target->data, "gnomecal-do-tasks", GINT_TO_POINTER(!done_tasks));