diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-12-01 23:04:14 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-12-01 23:04:14 +0800 |
commit | faf2cd005b73c7131345859db8c6b3f2b7bb18b6 (patch) | |
tree | 62f94967c81f22fcdaf93a5aced75afcea849199 /calendar/gui/alarm-notify/notify-main.c | |
parent | ae58e6cddf5547d17c521e98f8e8c22defb3a1c7 (diff) | |
download | gsoc2013-evolution-faf2cd005b73c7131345859db8c6b3f2b7bb18b6.tar gsoc2013-evolution-faf2cd005b73c7131345859db8c6b3f2b7bb18b6.tar.gz gsoc2013-evolution-faf2cd005b73c7131345859db8c6b3f2b7bb18b6.tar.bz2 gsoc2013-evolution-faf2cd005b73c7131345859db8c6b3f2b7bb18b6.tar.lz gsoc2013-evolution-faf2cd005b73c7131345859db8c6b3f2b7bb18b6.tar.xz gsoc2013-evolution-faf2cd005b73c7131345859db8c6b3f2b7bb18b6.tar.zst gsoc2013-evolution-faf2cd005b73c7131345859db8c6b3f2b7bb18b6.zip |
removed this function, since we now use the ESourceList to know what
2003-12-01 Rodrigo Moya <rodrigo@ximian.com>
* gui/alarm-notify/save.c (save_calendars_to_load): removed this
function, since we now use the ESourceList to know what calendars
to load.
(get_calendars_to_load): moved to config-data.c.
(save_notification_time, get_saved_notification_time,
save_blessed_program, is_blessed_program): use the
shared GConfClient.
* gui/alarm-notify/config-data.[ch]: use a GConfClient instead of a
EConfigListener.
(config_data_get_conf_client): renamed from _get_listener.
(config_data_get_timezone, config_data_get_24_hour_format): changed
to use the GConfClient.
(config_data_get_calendars_to_load): new function.
(ensure_inited): create the source lists for calendar and tasks here.
(do_cleanup): cleanup the source lists here.
* gui/alarm-notify/notify-main.c (load_calendars): use
config_data_get_calendars_to_load().
svn path=/trunk/; revision=23523
Diffstat (limited to 'calendar/gui/alarm-notify/notify-main.c')
-rw-r--r-- | calendar/gui/alarm-notify/notify-main.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c index f50118ba47..e70f01b44b 100644 --- a/calendar/gui/alarm-notify/notify-main.c +++ b/calendar/gui/alarm-notify/notify-main.c @@ -36,9 +36,11 @@ #include <bonobo/bonobo-main.h> #include <bonobo/bonobo-generic-factory.h> #include <bonobo-activation/bonobo-activation.h> +#include <libedataserver/e-source.h> #include "alarm.h" #include "alarm-queue.h" #include "alarm-notify.h" +#include "config-data.h" #include "save.h" @@ -108,7 +110,7 @@ alarm_notify_factory_fn (BonoboGenericFactory *factory, const char *component_id static gboolean load_calendars (gpointer user_data) { - GPtrArray *uris; + GPtrArray *cals; int i; alarm_queue_init (); @@ -119,23 +121,24 @@ load_calendars (gpointer user_data) g_assert (alarm_notify_service != NULL); } - uris = get_calendars_to_load (); - if (!uris) { + cals = config_data_get_calendars_to_load (); + if (!cals) { g_message ("load_calendars(): Could not get the list of calendars to load"); return TRUE; /* should we continue retrying? */; } - for (i = 0; i < uris->len; i++) { + for (i = 0; i < cals->len; i++) { + ESource *source; char *uri; - uri = uris->pdata[i]; + source = cals->pdata[i]; + uri = e_source_get_uri (source); alarm_notify_add_calendar (alarm_notify_service, uri, FALSE); - g_free (uri); } - g_ptr_array_free (uris, TRUE); + g_ptr_array_free (cals, TRUE); return FALSE; } |