aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/notify-main.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-05-21 01:00:33 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-05-21 01:00:33 +0800
commitde5b0738fd523214973cbc12287a599164baad5c (patch)
tree607359a531abd33569cbbfb29ff829cc14903319 /calendar/gui/alarm-notify/notify-main.c
parent3b787a2d62b885c248ca92d770e22051d2694091 (diff)
downloadgsoc2013-evolution-de5b0738fd523214973cbc12287a599164baad5c.tar
gsoc2013-evolution-de5b0738fd523214973cbc12287a599164baad5c.tar.gz
gsoc2013-evolution-de5b0738fd523214973cbc12287a599164baad5c.tar.bz2
gsoc2013-evolution-de5b0738fd523214973cbc12287a599164baad5c.tar.lz
gsoc2013-evolution-de5b0738fd523214973cbc12287a599164baad5c.tar.xz
gsoc2013-evolution-de5b0738fd523214973cbc12287a599164baad5c.tar.zst
gsoc2013-evolution-de5b0738fd523214973cbc12287a599164baad5c.zip
ported changes from evolution-1-0 to make it work with reminders on remote
2002-05-20 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-notify.c: * gui/alarm-notify/notify-main.c: ported changes from evolution-1-0 to make it work with reminders on remote backends. svn path=/trunk/; revision=16944
Diffstat (limited to 'calendar/gui/alarm-notify/notify-main.c')
-rw-r--r--calendar/gui/alarm-notify/notify-main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c
index 8b6daab254..06fe87b611 100644
--- a/calendar/gui/alarm-notify/notify-main.c
+++ b/calendar/gui/alarm-notify/notify-main.c
@@ -109,8 +109,8 @@ alarm_notify_factory_fn (BonoboGenericFactory *factory, void *data)
}
/* Loads the calendars that the alarm daemon has been told to load in the past */
-static void
-load_calendars (void)
+static gboolean
+load_calendars (gpointer user_data)
{
GPtrArray *uris;
int i;
@@ -118,7 +118,7 @@ load_calendars (void)
uris = get_calendars_to_load ();
if (!uris) {
g_message ("load_calendars(): Could not get the list of calendars to load");
- return;
+ return TRUE; /* should we continue retrying? */;
}
for (i = 0; i < uris->len; i++) {
@@ -151,6 +151,8 @@ load_calendars (void)
}
g_ptr_array_free (uris, TRUE);
+
+ return FALSE;
}
int
@@ -187,7 +189,7 @@ main (int argc, char **argv)
set_session_parameters (argv);
- load_calendars ();
+ g_idle_add ((GSourceFunc) load_calendars, NULL);
bonobo_main ();