From ac74e3a3a1600fd57d23a7d8a5bf1be674a5b2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 17 Aug 2011 16:50:43 +0100 Subject: Set the correct month number g_datetime_get_ymd() gets the Gregorian month number but gtk_calendar_set_month() needs a value between [0,11] --- src/indicator-datetime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c index 5da4a37..aca1101 100644 --- a/src/indicator-datetime.c +++ b/src/indicator-datetime.c @@ -286,7 +286,7 @@ menu_visible_notfy_cb(GtkWidget * menu, G_GNUC_UNUSED GParamSpec *pspec, gpointe g_date_time_unref (datetime); // Set the calendar to todays date - ido_calendar_menu_item_set_date (self->priv->ido_calendar, y, m, d); + ido_calendar_menu_item_set_date (self->priv->ido_calendar, y, m-1, d); // Make sure the day-selected signal is sent so the menu updates - may duplicate /*GVariant *variant = g_variant_new_uint32((guint)curtime); -- cgit v1.2.3