GNOME Bugzilla – Bug 155641
tutorial examples use deprecated functions
Last modified: 2004-12-24 10:33:26 UTC
The tutorial for GTK 2 uses deprecated functions: <http://www.gtk.org/tutorial/sec-calendar.html> Compile the example source code (which has syntax errors, just comment them out), you should see that launching within a LC_ALL=C will show weeks starting on sunday, whatever you do with the "weeks start on monday" checkbox. Cecause gtk_calendar_display_options() is deprecated, as well as GTK_CALENDAR_WEEK_START_MONDAY, some users are confused. The API reference is correct though. Please include a warning in the tutorial that it is outdated. This is Debian bug <http://bugs.debian.org/272054>. Regards, -- Loïc Minier
We're (slowly) updating the tutorial. No need to file bugs about individual sections, unless you want to attach an updated text.
I understand you don't want a bug for every section out of date if the whole manual is out of date, but I suggest putting a (big fat) warning at the beginning of the tutorial at least so people can check in the API reference instead. Think of people searching examples via search engines for example! My suggestion for this particular source code problem is to remove the gtk_calendar_display_options() altogether.