From 13b5da4c6715e536851dc974fc44ecd235885175 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 1 May 2013 17:42:59 -0700 Subject: since we're just testing to see if the calendar's been created yet, test for NULL instead of using IDO_IS_CALENDAR_MENU_ITEM() --- src/indicator-datetime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3