From b35e40efc47e8e3bc3e3683e61f2d078f6ec8628 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 3 Oct 2012 23:20:11 -0500 Subject: fix r189 oops. This code would be cleaner if handled upstream in IDO... filed side ticket #1061364 for that side issue --- 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 92e7fed..9546664 100644 --- a/src/indicator-datetime.c +++ b/src/indicator-datetime.c @@ -284,9 +284,9 @@ menu_visible_notfy_cb(GtkWidget * menu, G_GNUC_UNUSED GParamSpec *pspec, gpointe w = ido_calendar_menu_item_get_calendar (self->priv->ido_calendar); calendar = GTK_CALENDAR(w); gtk_calendar_get_date (calendar, &cal_y, &cal_m, &cal_d); - if ((cal_y != cur_y) || (cal_m-1 != cur_m)) + if ((cur_y != cal_y) || (cur_m-1 != cal_m)) gtk_calendar_select_month (calendar, cur_m-1, cur_y); /* (cur_m is 1-based) */ - if (cal_d != cur_d) + if (cur_d != cal_d) gtk_calendar_select_day (calendar, cur_d); /* Update in case date was changed outside of indicator-datetime */ -- cgit v1.2.3