aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-03-04 12:03:49 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-03-04 12:03:49 +0000
commit4ce8247b7f2dd26a9145bd2147f04a3702144032 (patch)
tree988236e6dcc8b8429e2a91fa04044b7a75663013
parent860726f38eefed0a62736d1c728927ecdec23565 (diff)
downloadayatana-indicator-datetime-4ce8247b7f2dd26a9145bd2147f04a3702144032.tar.gz
ayatana-indicator-datetime-4ce8247b7f2dd26a9145bd2147f04a3702144032.tar.bz2
ayatana-indicator-datetime-4ce8247b7f2dd26a9145bd2147f04a3702144032.zip
Fixed #729020 - Week numbers not respecting configuration on startup
-rw-r--r--src/indicator-datetime.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 7659812..7953883 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -1221,7 +1221,14 @@ new_calendar_item (DbusmenuMenuitem * newitem,
IdoCalendarMenuItem *ido = IDO_CALENDAR_MENU_ITEM (ido_calendar_menu_item_new ());
self->priv->ido_calendar = ido;
-
+
+ GtkCalendarDisplayOptions flags = ido_calendar_menu_item_get_display_options (self->priv->ido_calendar);
+ if (self->priv->show_week_numbers == TRUE)
+ flags |= GTK_CALENDAR_SHOW_WEEK_NUMBERS;
+ else
+ flags &= ~GTK_CALENDAR_SHOW_WEEK_NUMBERS;
+ ido_calendar_menu_item_set_display_options (self->priv->ido_calendar, flags);
+
dbusmenu_gtkclient_newitem_base(DBUSMENU_GTKCLIENT(client), newitem, GTK_MENU_ITEM(ido), parent);
g_signal_connect_after(ido, "month-changed", G_CALLBACK(month_changed_cb), (gpointer)newitem);
return TRUE;