How to learn GTK?

Hello.

I am new here, I am Brazilian and my English is not good.

I would like to know how to learn GTK+, because I have read the official documentation but it is not good. The official documentation does not have a good explanation and it is confused. If I cannot learn through the official documentation, what should I do?

2 Likes

Can you please point to the “official documentation” that you read, and explain the issue with it ?

Thanks !

If you know Python, there’s a very good resource at https://python-gtk-3-tutorial.readthedocs.io/en/latest/index.html

While my favorite is this one https://developer.gnome.org/gtk-tutorial/stable/ (for C, but beware that it targets gtk2 - it’s quite old)

2 Likes

https://developer.gnome.org/gtk3/3.24/

The Michael B. YouTube channel offers more than two hundreds video tutorials on GTK (C language)

4 Likes

I will check it out, thanks for sharing.

Thank you very much.

1 Like

First of all, if the documentation is not clear, please file an issue, or create a topic on Discours asking for clarification. Generic topics like “the documentation is not good” do not make it easy for anybody to understand what is your level of understanding, what it is that is not clear, or how to help you.

If you’re looking for code examples to copy and paste in your own project, you probably won’t find any; there’s the gtk-demo application that is shipped by GTK itself, and that you can use to see common usage patterns, as well as their source code. Many distributions have a package for it, like gtk-3-examples in Debian and Ubuntu, or gtk3-devel in Fedora. You should install it, and look at the various demos.

There’s also a whole pinned thread about useful documentation for GTK on this Discourse instance, with many links that you can check out.

3 Likes

Thank you very much.

I think there are almost 300 Videos :smiley:

3 Likes

Thank you very much, the gtk3-demo will help me a lot. :slight_smile:

2 Likes

Then you might find "gtk3-widget-factory" and "gtk3-icon-browser" commands useful too.

gtk3-widget-factory

gtk3-icon-browser

2 Likes

Thank you very much.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.