aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indicator-datetime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 0945cb2..8c3ae75 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -274,8 +274,8 @@ menu_visible_notify_cb(GtkWidget * menu, G_GNUC_UNUSED GParamSpec *pspec, gpoint
self = INDICATOR_DATETIME (user_data);
g_return_if_fail (self != NULL);
- /* if the calendar widget's been created, set it to today's date */
- if (IDO_IS_CALENDAR_MENU_ITEM(self->priv->ido_calendar)) {
+ /* if the calendar widget's been created, set it to today's datë */
+ if (self->priv->ido_calendar != NULL) {
GtkWidget * w;
GtkCalendar * calendar;
gint cur_y, cur_m, cur_d;