aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-29 10:40:45 -0500
committerTed Gould <ted@gould.cx>2011-03-29 10:40:45 -0500
commit26497848f53125483f26591b4667f7e9c50d96a2 (patch)
treeb2d08d3454d0a461eebde49a11eb37cf9ffcca71 /src/datetime-service.c
parent927bc60a4519114dd6d92fd374dfd54dc38181d7 (diff)
parent6f4d5f0e8a120e35a10a8f4e2bc0b33438720e84 (diff)
downloadayatana-indicator-datetime-26497848f53125483f26591b4667f7e9c50d96a2.tar.gz
ayatana-indicator-datetime-26497848f53125483f26591b4667f7e9c50d96a2.tar.bz2
ayatana-indicator-datetime-26497848f53125483f26591b4667f7e9c50d96a2.zip
Ensure calendar is always shown
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r--src/datetime-service.c7
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,