diff -u -r1.105 clock.c --- clock.c 21 May 2003 08:11:52 -0000 1.105 +++ applets/clock/clock.c 28 Jun 2003 17:48:37 -0000 @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -55,6 +56,8 @@ #define NEVER_SENSITIVE "never_sensitive" +#define FIRST_WEEKDAY_IS_MONDAY 1 + static const char* KEY_HOUR_FORMAT = "hour_format"; static const char* KEY_SHOW_SECONDS = "show_seconds"; static const char* KEY_SHOW_DATE = "show_date"; @@ -482,6 +485,10 @@ { GtkWindow *window; GtkWidget *calendar; + gint first_day; + + setlocale (LC_ALL, ""); + first_day = (int) *(nl_langinfo (_NL_TIME_FIRST_WEEKDAY)); window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL)); @@ -452,6 +459,11 @@ G_CALLBACK (close_on_escape), cd); calendar = gtk_calendar_new (); + + if (first_day == FIRST_WEEKDAY_IS_MONDAY) { + gtk_calendar_display_options (GTK_CALENDAR (calendar), + GTK_CALENDAR_WEEK_START_MONDAY | GTK_CALENDAR_SHOW_HEADING | GTK_CALENDAR_SHOW_DAY_NAMES); + } gtk_container_add (GTK_CONTAINER (window), calendar);