aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-30 15:02:28 +0100
committerkarl-qdh <karl@qdh.org.uk>2011-03-30 15:02:28 +0100
commit019db0b50bfc677633e06cac7dfddf2c3a61cbf2 (patch)
tree278ad47c06ec845cb2eb91137112916ed8cbe959
parent851b7395730c2679403bc69013a9aea94584721d (diff)
downloadayatana-indicator-datetime-019db0b50bfc677633e06cac7dfddf2c3a61cbf2.tar.gz
ayatana-indicator-datetime-019db0b50bfc677633e06cac7dfddf2c3a61cbf2.tar.bz2
ayatana-indicator-datetime-019db0b50bfc677633e06cac7dfddf2c3a61cbf2.zip
Move start timer into an idle so we have a chance to actually create the menu items
-rw-r--r--src/datetime-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 36a9a73..863bc9e 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -410,7 +410,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);
- start_ecal_timer();
+ g_idle_add(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);