anewguy
April 6th, 2009, 11:15 AM
Been trying to get going on my second GTK application. This one requires toolbar with icons. What I want is a toolbar with icons, and when I click on an icon to have it changed to look like it is pressed and stay that way until I do something else.
I've been trying like heck to follow the following tutorial, but I just end up with a mess - pointers to pointers that aren't defined, syntax errors that make no sense to me, etc.. I've been trying to follow the part where it builds an icon from a XPM file, but when I put their sample XPM in a file and include that file, it then bombs out saying gtk.XPM isn't defined. I am starting to get confused and wish I could find a guide that states in simple terms "define the toolbar as x", "define these widgets, etc., as they are needed", "define your icons as A, build the widgets from them with B", etc..
I hate to sound so dang stupid but I'm just starting out on this. My "C" programming is so rusty I really don't know what the definitions mean that I find that say things like:
gtk_xxx_yyy(GtkContainer (*container),
..
..
..
I see these a lot in the gtk reference guide (and in just general "C" documentation). I just don't know how to read them anymore.
http://www.gtk.org/tutorial1.2/gtk_tut-10.html#ss10.11
Any help and pointers to more simple beginners guides for using toolbar, icons, etc., would be greatly appreciated!
Thanks in advance!
Dave :)
I've been trying like heck to follow the following tutorial, but I just end up with a mess - pointers to pointers that aren't defined, syntax errors that make no sense to me, etc.. I've been trying to follow the part where it builds an icon from a XPM file, but when I put their sample XPM in a file and include that file, it then bombs out saying gtk.XPM isn't defined. I am starting to get confused and wish I could find a guide that states in simple terms "define the toolbar as x", "define these widgets, etc., as they are needed", "define your icons as A, build the widgets from them with B", etc..
I hate to sound so dang stupid but I'm just starting out on this. My "C" programming is so rusty I really don't know what the definitions mean that I find that say things like:
gtk_xxx_yyy(GtkContainer (*container),
..
..
..
I see these a lot in the gtk reference guide (and in just general "C" documentation). I just don't know how to read them anymore.
http://www.gtk.org/tutorial1.2/gtk_tut-10.html#ss10.11
Any help and pointers to more simple beginners guides for using toolbar, icons, etc., would be greatly appreciated!
Thanks in advance!
Dave :)