Monday, November 14, 2011

two gtk menu examples


menu factory and menu program for small examples

http://www.gtk.org/tutorial1.2/gtk_tut-13.html

to compile:


g++ main.cpp -Os -s `pkg-config gtk+-2.0 --cflags` `pkg-config gtk+-2.0 --libs`

create itemfactory as a .c file or you will get a huge list of deprecated error messages

here is tree example for GTK 2.0
http://scentric.net/tutorial/treeview-tutorial.html

No comments:

Post a Comment