diff options
Diffstat (limited to 'calendar/gui/alarm-notify/config-data.c')
-rw-r--r-- | calendar/gui/alarm-notify/config-data.c | 45 |
1 files changed, 5 insertions, 40 deletions
diff --git a/calendar/gui/alarm-notify/config-data.c b/calendar/gui/alarm-notify/config-data.c index bbc508577b..cd3f7ed885 100644 --- a/calendar/gui/alarm-notify/config-data.c +++ b/calendar/gui/alarm-notify/config-data.c @@ -138,49 +138,14 @@ config_data_get_24_hour_format (void) return TRUE; } -GPtrArray * -config_data_get_calendars_to_load (void) +gboolean +config_data_get_notify_with_tray (void) { - GPtrArray *cals; - GSList *uids_selected, *l; - ESource *source; - ensure_inited (); - /* create the array to be returned */ - cals = g_ptr_array_new (); - - /* get selected calendars */ - uids_selected = gconf_client_get_list (conf_client, "/apps/evolution/calendar/display/selected_calendars", - GCONF_VALUE_STRING, NULL); - for (l = uids_selected; l != NULL; l = l->next) { - char *uid = l->data; - - source = e_source_list_peek_source_by_uid (calendar_source_list, uid); - if (source) - g_ptr_array_add (cals, source); - - g_free (uid); - } - - g_slist_free (uids_selected); - - /* get selected tasks */ - uids_selected = gconf_client_get_list (conf_client, "/apps/evolution/calendar/tasks/selected_tasks", - GCONF_VALUE_STRING, NULL); - for (l = uids_selected; l != NULL; l = l->next) { - char *uid = l->data; - - source = e_source_list_peek_source_by_uid (calendar_source_list, uid); - if (source) - g_ptr_array_add (cals, source); - - g_free (uid); - } - - g_slist_free (uids_selected); - - return cals; + return gconf_client_get_bool (conf_client, + "/apps/evolution/calendar/notify/notify_with_tray", + NULL); } /** |