diff options
author | Ted Gould <ted@gould.cx> | 2011-03-08 16:25:48 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-03-08 16:25:48 -0600 |
commit | c455c75c9715c9dd1ee6c7ec58c45a8af6174cc3 (patch) | |
tree | 988236e6dcc8b8429e2a91fa04044b7a75663013 | |
parent | 4bc209273a58d689e5fde4b81732579f04ee6491 (diff) | |
parent | 4ce8247b7f2dd26a9145bd2147f04a3702144032 (diff) | |
download | ayatana-indicator-datetime-c455c75c9715c9dd1ee6c7ec58c45a8af6174cc3.tar.gz ayatana-indicator-datetime-c455c75c9715c9dd1ee6c7ec58c45a8af6174cc3.tar.bz2 ayatana-indicator-datetime-c455c75c9715c9dd1ee6c7ec58c45a8af6174cc3.zip |
Show the week numbers if configured to do so.
-rw-r--r-- | src/indicator-datetime.c | 9 |
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; |