Bug#272054: libgtk2.0-0: Option GTK_CALENDAR_WEEK_START_MONDAY is ignored, despite documentation.

Loïc Minier Loïc Minier , 272054@bugs.debian.org
Sun, 17 Oct 2004 18:09:30 +0200


reassign 272054 libgtk2.0-doc
severity 272054 minor
forwarded 272054 http://bugzilla.gnome.org/show_bug.cgi?id=155641
thanks

Eric Lavarde <bugs.debian.nospam@zorglub.s.bawue.de> - Fri, Sep 17, 2004:

> Nevertheless the documentation at
> http://www.gtk.org/tutorial/sec-calendar.html states that the option is
> still valid with GTK2, so it looks like a bug to me. You can correct th=
e
> documentation, but I would prefer to get back the WEEK_START_MONDAY
> option... :>

 The *tutorial* is incorrect (well outdated), the API reference is.  If
 you take a look at:
    <http://developer.gnome.org/doc/API/2.0/gtk/GtkCalendar.html#gtk-cale=
ndar-display-options>
 You'll see gtk_calendar_display_options() is deprecated in favor of
 gtk_calendar_set_display_options().  And if you follow its
 documentation, you'll end up here:
    <http://developer.gnome.org/doc/API/2.0/gtk/GtkCalendar.html#GtkCalen=
darDisplayOptions>
 where it is stated that GTK_CALENDAR_WEEK_START_MONDAY is deprecated
 too.

> PS: I don't know if it's somehow related, but setting the LANG variable=
 before
> starting jpilot doesn't change anything to the "Monday" behavior, thoug=
h
> the calendar becomes French, German whatever.

 GTK_CALENDAR_WEEK_START_MONDAY is completely ignored.  If you start the
 sample program from the totorial with LC_ALL=C, you'll see weeks
 beginning with Sunday, and clicking on "weeks start on monday" doesn't
 change the behavior (but produces the warning).

   Regards,

-- 
Loïc Minier <lool@dooz.org>