PDA

View Full Version : GTK get widget child



nickos
September 17th, 2011, 12:14 PM
How can i get the child of a widget in GTK+ ?

SledgeHammer_999
September 17th, 2011, 01:14 PM
If a widget A has child widgets then it is a GtkContainer (http://developer.gnome.org/gtk3/stable/GtkContainer.html) also. So you could use gtk_container_get_children() (http://developer.gnome.org/gtk3/stable/GtkContainer.html#gtk-container-get-children)