aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-datetime.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-10-03 23:20:11 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-10-03 23:20:11 -0500
commitb35e40efc47e8e3bc3e3683e61f2d078f6ec8628 (patch)
tree8d9b2310c288a4d441fe1fd59e3d58c507155c72 /src/indicator-datetime.c
parent0048385ecec65c6bbfad527261ac9d8ac180d0ef (diff)
downloadayatana-indicator-datetime-b35e40efc47e8e3bc3e3683e61f2d078f6ec8628.tar.gz
ayatana-indicator-datetime-b35e40efc47e8e3bc3e3683e61f2d078f6ec8628.tar.bz2
ayatana-indicator-datetime-b35e40efc47e8e3bc3e3683e61f2d078f6ec8628.zip
fix r189 oops. This code would be cleaner if handled upstream in IDO... filed side ticket #1061364 for that side issue
Diffstat (limited to 'src/indicator-datetime.c')
-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 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 */