← Back to team overview

ayatana-commits team mailing list archive

[Merge] lp:~karl-qdh/indicator-datetime/week-numbers-on-start into lp:indicator-datetime

 

Ted Gould has proposed merging lp:~karl-qdh/indicator-datetime/week-numbers-on-start into lp:indicator-datetime with lp:~karl-qdh/indicator-datetime/colours-refresh-fix as a prerequisite.

Requested reviews:
  Ted Gould (ted)
Related bugs:
  #729020 indicator datetime calendar doesn't show week numbers if configured on startup, only on change
  https://bugs.launchpad.net/bugs/729020

For more details, see:
https://code.launchpad.net/~karl-qdh/indicator-datetime/week-numbers-on-start/+merge/52214

Bug fix for show week numbers settings on startup
-- 
https://code.launchpad.net/~karl-qdh/indicator-datetime/week-numbers-on-start/+merge/52214
Your team ayatana-commits is subscribed to branch lp:indicator-datetime.
=== modified file 'src/indicator-datetime.c'
--- src/indicator-datetime.c	2011-03-03 18:51:26 +0000
+++ src/indicator-datetime.c	2011-03-04 16:04:32 +0000
@@ -1221,7 +1221,14 @@
 	
 	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;


Follow ups