diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-05-01 17:42:59 -0700 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-05-01 17:42:59 -0700 |
commit | 13b5da4c6715e536851dc974fc44ecd235885175 (patch) | |
tree | 703bb1bdcacce87a982a6374d2ad8c3ecfdfe6da | |
parent | c5e72bbaf1744a6693e6a69cfe67c2aa914d3843 (diff) | |
download | ayatana-indicator-datetime-13b5da4c6715e536851dc974fc44ecd235885175.tar.gz ayatana-indicator-datetime-13b5da4c6715e536851dc974fc44ecd235885175.tar.bz2 ayatana-indicator-datetime-13b5da4c6715e536851dc974fc44ecd235885175.zip |
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()
-rw-r--r-- | src/indicator-datetime.c | 4 |
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; |