Glade GTK accessing individual widgets
I constructed a database manipulating GUI using glade, for my add button hierarc开发者_如何学运维hy is add->confirmation dialog->(if yes)add data. how could each widget values in the main form be accessed? i am new to gtk and glade, i managed to get rid of most of the errors.
Ordinarily you would use GtkBuilder like Ethan said. As far as I know, dynamically-created widgets can't be so easily looked-up. I'd just pass a small array of pointers to the modules that need them.
精彩评论