aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-08-17 16:50:43 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-08-17 16:50:43 +0100
commitac74e3a3a1600fd57d23a7d8a5bf1be674a5b2d9 (patch)
tree041539363c9d85dc1cfc2a9d3c95f5c946952285
parent8d74e5b47c5134f906fcd728b836047b8a4ad81f (diff)
downloadayatana-indicator-datetime-ac74e3a3a1600fd57d23a7d8a5bf1be674a5b2d9.tar.gz
ayatana-indicator-datetime-ac74e3a3a1600fd57d23a7d8a5bf1be674a5b2d9.tar.bz2
ayatana-indicator-datetime-ac74e3a3a1600fd57d23a7d8a5bf1be674a5b2d9.zip
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]
-rw-r--r--src/indicator-datetime.c2
1 files changed, 1 insertions, 1 deletions
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);