diff options
author | karl-qdh <karl@qdh.org.uk> | 2011-03-30 15:57:26 +0100 |
---|---|---|
committer | karl-qdh <karl@qdh.org.uk> | 2011-03-30 15:57:26 +0100 |
commit | afdaa937487ff3db6077d851132ea7ae2353bf0f (patch) | |
tree | c9c44189396544157e6508cfbb1e250ea2ac721b /src/datetime-service.c | |
parent | 019db0b50bfc677633e06cac7dfddf2c3a61cbf2 (diff) | |
download | ayatana-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.c | 8 |
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); |