After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552317 - GtkCalendar does not support setting week start day to value different from locale
GtkCalendar does not support setting week start day to value different from l...
Status: RESOLVED DUPLICATE of bug 401053
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-09-15 08:00 UTC by Ilkka Tuohela
Modified: 2008-09-15 08:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ilkka Tuohela 2008-09-15 08:00:22 UTC
It would be really nice if GtkCalendar widget would have interface to set the start day of week manually, to whatever value user wants, overriding the value inherited from locale settings.

I'm just requesting a new accessor to the GtkCalendar API to set and get the priv->week_start value, in range of 0-6 of course: it would be up to the program using GtkCalendar to actually set it, normally we still would use the locale based start day.

If this is accepted, I would like the developers to consider a gconf key to set it globally to all applications using the calendar widget: this way, the change would be transparent and applied everywhere in user's environment. This key should be normally undefined, -1 or something else indicating 'use locale settings', so the current behavior does not change. This value would of course be initialized gtk_calendar_init() as usual, but I'd still like to see the accessors as well.

Note that I'm not suggesting the 'does week start on monday or sunday' code to be reimplemented, I want to make it possible to start week ANY weekday if user requests so: there actually exist official calendars which start on other days than sunday or monday!

I have two use cases for this change. Both are related to the Gnome panel clock's calendar view, but I just don't think this change belongs to the panel applet, it should be in the GtkCalendar itself.

- Many people like to use Gnome in English, but the default English locale has sunday as the starting day of week: you can find English locale which has monday as starting day (en_DK.utf8 for example), but this is not easy enough to do, and the start of week day could be just part of Gnome's time and date preferences

- Right now I live in Saudi Arabia, where week starts on saturday, weekend is on thursday and friday. Only way to set the local week to the calendar is to set LC_TIME=ar_SA.utf8, but this brings me month names in arabic as well and I don't speak arabic!

I could implement this change myself and suggest a patch, but I first ask someone else to consider it: maybe there already exists a way to do this, I just did not notice it in the APIs?
Comment 1 Claudio Saavedra 2008-09-15 08:23:34 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 401053 ***