GNOME Bugzilla – Bug 786553
Wrong example number in Gtk Tutorial
Last modified: 2017-08-22 13:20:34 UTC
Please visit page: https://developer.gnome.org/gtk3/stable/ch01s03.html That's the page for example number 3 but the source code and build instructions refer to example-4.c. Looks like it should be example-3.c instead.
the cause here is probably just sections getting rearranged but example file names not being updated; examples seem to be auto-numbered, whereas commands, filenames, etc are manually typed. example-3 is currently used in https://developer.gnome.org/gtk3/stable/ch01s05.html https://developer.gnome.org/gtk3/stable/gtk-getting-started.html#id-1.2.3.5 uses example-0.c, so I wonder how much correspondence there ever was here; Example 0 obviously probably did not ever exist... I guess a patch to fix this by checking what example numbers are used throughout, and updating all filenames to match, would be welcome - but as long as the examples still compile and run as intended, it's not the end of the world, though confusing
fixed by https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-22&id=6537f7dad8a10c74d316102d01ac9cc8c500453a - thanks for the report