aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-service.c
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-30 15:57:26 +0100
committerkarl-qdh <karl@qdh.org.uk>2011-03-30 15:57:26 +0100
commitafdaa937487ff3db6077d851132ea7ae2353bf0f (patch)
treec9c44189396544157e6508cfbb1e250ea2ac721b /src/datetime-service.c
parent019db0b50bfc677633e06cac7dfddf2c3a61cbf2 (diff)
downloadayatana-indicator-datetime-afdaa937487ff3db6077d851132ea7ae2353bf0f.tar.gz
ayatana-indicator-datetime-afdaa937487ff3db6077d851132ea7ae2353bf0f.tar.bz2
ayatana-indicator-datetime-afdaa937487ff3db6077d851132ea7ae2353bf0f.zip
Potential fix for suspend issue suggested by njpatel
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r--src/datetime-service.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 863bc9e..e284418 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -353,6 +353,12 @@ stop_ecal_timer(void)
{
if (ecaltimer != 0) g_source_remove(ecaltimer);
}
+static gboolean
+idle_start_ecal_timer (gpointer data)
+{
+ start_ecal_timer();
+ return FALSE;
+}
static void
show_events_changed (void)
@@ -410,7 +416,7 @@ check_for_calendar (gpointer user_data)
if (g_settings_get_boolean(conf, SETTINGS_SHOW_EVENTS_S)) {
dbusmenu_menuitem_property_set_bool(add_appointment, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE);
dbusmenu_menuitem_property_set_bool(events_separator, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE);
- g_idle_add(start_ecal_timer, NULL);
+ g_idle_add((GSourceFunc)idle_start_ecal_timer, NULL);
} else {
dbusmenu_menuitem_property_set_bool(add_appointment, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
dbusmenu_menuitem_property_set_bool(events_separator, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);