diff options
author | karl-qdh <karl@qdh.org.uk> | 2011-03-28 11:22:03 +0100 |
---|---|---|
committer | karl-qdh <karl@qdh.org.uk> | 2011-03-28 11:22:03 +0100 |
commit | 6f4d5f0e8a120e35a10a8f4e2bc0b33438720e84 (patch) | |
tree | e2d98b8193e8c577a0de84a27db866f816f360f2 /src/datetime-service.c | |
parent | 5449dfc11d34b4b5137605280e73a3fab13f7fb1 (diff) | |
download | ayatana-indicator-datetime-6f4d5f0e8a120e35a10a8f4e2bc0b33438720e84.tar.gz ayatana-indicator-datetime-6f4d5f0e8a120e35a10a8f4e2bc0b33438720e84.tar.bz2 ayatana-indicator-datetime-6f4d5f0e8a120e35a10a8f4e2bc0b33438720e84.zip |
Show calendar widget always
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r-- | src/datetime-service.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 65df77e..7e01f88 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -364,12 +364,13 @@ static gboolean check_for_calendar (gpointer user_data) { g_return_val_if_fail (calendar != NULL, FALSE); - + // Always enable the calendar even if it does nothing + dbusmenu_menuitem_property_set_bool(calendar, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE); + dbusmenu_menuitem_property_set_bool(calendar, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE); + gchar *evo = g_find_program_in_path("evolution"); if (evo != NULL) { g_debug("Found the calendar application: %s", evo); - dbusmenu_menuitem_property_set_bool(calendar, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE); - dbusmenu_menuitem_property_set_bool(calendar, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE); dbusmenu_menuitem_property_set_bool(date, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE); g_signal_connect (G_OBJECT(date), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, |