1 diff -urN aaa/gnome-panel-2.3.6.1/applets/clock/clock.c gnome-panel-2.3.6.1/applets/clock/clock.c
2 --- aaa/gnome-panel-2.3.6.1/applets/clock/clock.c 2003-08-07 14:30:15.000000000 +0200
3 +++ gnome-panel-2.3.6.1/applets/clock/clock.c 2003-08-09 21:53:07.000000000 +0200
11 #include <panel-applet.h>
14 #define NEVER_SENSITIVE "never_sensitive"
16 +#define FIRST_WEEKDAY_IS_MONDAY 1
18 static const char* KEY_HOUR_FORMAT = "hour_format";
19 static const char* KEY_SHOW_SECONDS = "show_seconds";
20 static const char* KEY_SHOW_DATE = "show_date";
27 + setlocale (LC_ALL, "");
28 + first_day = (int) *(nl_langinfo (_NL_TIME_FIRST_WEEKDAY));
30 window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
34 calendar = gtk_calendar_new ();
36 + if (first_day == FIRST_WEEKDAY_IS_MONDAY) {
37 + gtk_calendar_display_options (GTK_CALENDAR (calendar),
38 + GTK_CALENDAR_WEEK_START_MONDAY | GTK_CALENDAR_SHOW_HEADING | GTK_CALENDAR_SHOW_DAY_NAMES);
41 gtk_container_add (GTK_CONTAINER (window), calendar);
43 gtk_widget_show (calendar);