r15814 - gnucash/trunk/src/gnome-utils - Base the value of the "week_starts_monday" dense-cal parameter on an implementation detail of GTK. :(
Josh Sled
jsled at cvs.gnucash.org
Wed Apr 4 21:33:14 EDT 2007
Author: jsled
Date: 2007-04-04 21:33:13 -0400 (Wed, 04 Apr 2007)
New Revision: 15814
Trac: http://svn.gnucash.org/trac/changeset/15814
Modified:
gnucash/trunk/src/gnome-utils/gnc-dense-cal.c
Log:
Base the value of the "week_starts_monday" dense-cal parameter on an implementation detail of GTK. :(
Modified: gnucash/trunk/src/gnome-utils/gnc-dense-cal.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-dense-cal.c 2007-04-05 00:43:09 UTC (rev 15813)
+++ gnucash/trunk/src/gnome-utils/gnc-dense-cal.c 2007-04-05 01:33:13 UTC (rev 15814)
@@ -430,8 +430,22 @@
dcal->initialized = TRUE;
- dcal->week_starts_monday = 1;
+ dcal->week_starts_monday = 0;
+ {
+ gchar **parts;
+ parts = g_strsplit(dgettext("gtk20", "calendar:week_start:0"),
+ ":", 3);
+ if (parts[0] != NULL
+ && parts[1] != NULL
+ && parts[2] != NULL)
+ {
+ if (strcmp("1", parts[2]) == 0)
+ dcal->week_starts_monday = 1;
+ }
+ g_strfreev(parts);
+ }
+
gtk_widget_pop_composite_child();
gtk_widget_show_all(GTK_WIDGET(dcal));
More information about the gnucash-changes
mailing list