mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Base the value of the "week_starts_monday" dense-cal parameter on an implementation detail of GTK. :(
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15814 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9abdbc10dc
commit
2b8ef2b7d6
@ -430,7 +430,21 @@ gnc_dense_cal_init(GncDenseCal *dcal)
|
||||
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user