Does anyone know of any well done resources for learning how to use the GTK+ library with C, or a semi-decent one?
Does anyone know of any well done resources for learning how to use the GTK+ library with C, or a semi-decent one?
Laptop: Lenovo ThinkPad T410, CPU: Intel Core i5 520M, Ram: 8GB DDR3, Hard Drive: 320GB, Graphics: Intel HD, OS: Windows 7 / Arch Linux x86_64
Desktop: Motherboard: ASRock Fatal1ty AB350 Gaming K4, CPU: AMD Ryzen 3 1200, RAM: 8GB DDR4, Storage: Samsung 850 Pro 256GB, Graphics: Asus Radeon RX 550 4GB, OS: Arch Linux x86_64
there is one over on the gnome site, but don't know what you consider well done or semi-decent
http://developer.gnome.org/gtk-tutorial/2.24/
This is for GTK+2. There isn't a whole lot out yet for GTK+3, but the differences won't be too hard to pick up once you learn GTK+2
The Zetcode tutorials are pretty good:
http://zetcode.com/tutorials/gtktutorial/
Version numbers I am not too concerned about. The resources on the Gnome developer page don't seem to explain your options for all the widgets or how they relate to each other. I am open to books, it doesn't have to be free though that is preferred.
Laptop: Lenovo ThinkPad T410, CPU: Intel Core i5 520M, Ram: 8GB DDR3, Hard Drive: 320GB, Graphics: Intel HD, OS: Windows 7 / Arch Linux x86_64
Desktop: Motherboard: ASRock Fatal1ty AB350 Gaming K4, CPU: AMD Ryzen 3 1200, RAM: 8GB DDR4, Storage: Samsung 850 Pro 256GB, Graphics: Asus Radeon RX 550 4GB, OS: Arch Linux x86_64
Not documentation as such I know, but if you install and play around with the Glade interface designer, it should give you an idea of what widgets are available, their properties and layout, and what they can do. Coupled with the official documentation, that might be a quicker way to figure the widgets out than coding sample interfaces in C, especially as GtkBuilder XML (as produced by Glade) is the preferred way to layout interfaces in GTK+.
Gareth
http://www.gtkforums.com/
gtk is event-based programming
http://zetcode.com/tutorials/gtktutorial/gtkevents/