aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-service.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-04-23 13:51:49 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-04-23 13:51:49 -0500
commit4b554f022ed28f2b41457f6dbd00e7e0a4a7cdf3 (patch)
tree191d053f50438e96bc6463fbb81036bc3bcf12b8 /src/datetime-service.c
parentbd456c3baa0200b7f8876fc1646ae09dca39c1c2 (diff)
parent2ec7b1e0d6fcc25e0570512757a7298ec7d6e806 (diff)
downloadayatana-indicator-datetime-4b554f022ed28f2b41457f6dbd00e7e0a4a7cdf3.tar.gz
ayatana-indicator-datetime-4b554f022ed28f2b41457f6dbd00e7e0a4a7cdf3.tar.bz2
ayatana-indicator-datetime-4b554f022ed28f2b41457f6dbd00e7e0a4a7cdf3.zip
sync with lp:indicator-datetime
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r--src/datetime-service.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 8ecef1c..c2a4c27 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -579,8 +579,10 @@ check_for_calendar (gpointer user_data)
g_signal_connect(calendar, "event::day-selected-double-click", G_CALLBACK(day_selected_double_click_cb), NULL);
} else {
g_debug("Unable to find calendar app.");
- dbusmenu_menuitem_property_set_bool(add_appointment, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
- dbusmenu_menuitem_property_set_bool(events_separator, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
+ if (add_appointment != NULL)
+ dbusmenu_menuitem_property_set_bool(add_appointment, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
+ if (events_separator != NULL)
+ dbusmenu_menuitem_property_set_bool(events_separator, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
}
if (g_settings_get_boolean(conf, SETTINGS_SHOW_CALENDAR_S)) {