GTK and C : how to view list of gpointer children
hi.
i have a problem with getting list of GTK elements. i'm using GLADE-2 to build interfaces and i have to configure callbacks manually. this isn't so hard when i'm using simple pointers passing to callback functions, for example pointers to label or button. but i don't know how to get children list when i'm passing containers which contains more elements (for example: frame with label, text entry and image) ... how to get list (and easy access) to GTK container children having his gpointer ??? |
Glade provides a function named lookup_widget.
Look at the code generated by Glade, and you'll find that every widget has a name and a relation with him parents. Providing any reference in the tree and the name of the widget you want to look up for, lookp_widget will return to you the pointer to that widget. Look at at prototype, and you'll understand. Sorry about my english. |
All times are GMT -5. The time now is 10:31 AM. |