Useful documentation for GTK

I generally feel that the docs for various language bindings like pygobject and gtk-rs are much better then the docs for C.
I really want to complain that the current status of GTK is just “black art” with many parts lacking documentation. The many parts of GTK like gtkbuilder, gresources, gobject are completely confusing for newcomers, yet these are essential for GTK applications to work. The gtkbuilder’s xml format is even undocumented (not even those xml tags and attributes already supported by GTK, let alone create out-of-tree subparsers) , and glade does not even recognize the official demo’s xml definition.

Update: glade won’t support GTK4. It was intended in glade-users-list, but was dropped several months later here. The glade maintainer has a GUADEC presentation about the new Cambalache UI maker and also blogged Merengue: Cambalache’s workspace. Also see Plan about GTK4 support of Glade? - #2 by sophieherold

The API references for language bindings literally use the same documentation as the C API.

Have you also looked at the GTK 4 API reference?

I’m in the process of moving more documentation to the same model, and under the docs.gtk.org domain, to ensure that it’s easier to go through the various bits of our platform.

You’ve mentioned three things, and two of them are not part of GTK.

That is true. I’d be happy to review your contributions on how to improve the documentation for newcomers. Additionally, with the new developer documentation website, adding guides and tutorials should be easier.

Glade is not going to work for GTK4; it’s a known issue, and there are replacements currently being worked on.

FYI, the book “Scalable C” from the czmq author describes syntax very similar (in fact I believe almost identical to, except that zmq does not use GObject; zmq has a formal specification here) to those GLib and GTK.
https://hintjens.gitbooks.io/scalable-c/content/index.html
Chapter 2 is about “Scalable C” syntax.
(Other topics are git, public project’s license, build systems, etc, and are not directly linked to programming GTK in C)

I don’t think this is at all relevant to the GTK or GNOME documentation, except that they both use C.

Yes, they aren’t for GTK and GNOME.

Sorry for misusing the word “documentation” here but I mean “tutorials”.
The new domain docs.gtk.org is indeed better than the old gnome developers website.

When we reopen this old thread we should also mention

GitHub - ToshioCP/Gtk4-tutorial: A gtk4 tutorial for beginners

And the Nim GTK4 book has made also some progress in the last year:

GTK4 for Graphical User Interfaces