[dates] Use nl_langinfo to get the locale-dependent first-day-of-week



commit dc7f1ae5f2ebdc20f765f2a79dbc64ee107d44c6
Author: Chris Lord <chris linux intel com>
Date:   Fri Oct 16 16:32:12 2009 +0100

    Use nl_langinfo to get the locale-dependent first-day-of-week
    
    2009-10-16  Chris Lord  <chris linux intel com>
    
    	* src/dates_view.c (dates_view_init):
    	Use nl_langinfo to get the locale-dependent first-day-of-week

 ChangeLog        |    5 +++++
 src/dates_view.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 36d1992..60e213b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-16  Chris Lord  <chris linux intel com>
+
+	* src/dates_view.c (dates_view_init):
+	Use nl_langinfo to get the locale-dependent first-day-of-week
+
 2009-03-12  Rob Bradford  <rob linux intel com>
 
 	* NEWS:
diff --git a/src/dates_view.c b/src/dates_view.c
index d3e4331..d65db2f 100644
--- a/src/dates_view.c
+++ b/src/dates_view.c
@@ -1505,7 +1505,7 @@ dates_view_init (DatesView *view)
 	priv->days = 1;
 	priv->months = 0;
 	priv->months_in_row = 4;
-	priv->week_start = 1;
+	priv->week_start = *nl_langinfo (_NL_TIME_FIRST_WEEKDAY) - 1;
 	priv->dragbox = TRUE;
 	priv->single_click = TRUE;
 	priv->double_click = FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]