Re: [gtk-list] Re: Getting children




Federico Mena Quintero <federico@nuclecu.unam.mx> writes:

> >  I see how to get a child's ancestor.  But knowing the ancestor, is there
> >  a way to get the chilren of that ancestor?
> 
> You can use gtk_container_foreach() for that.  There are a couple of
> places in Gtk were a list of children is built using the foreach method.

Including:
 
 GList* gtk_container_children (GtkContainer *container);

Which returns a GList of the children of a container.

Just thought it should be mentioned,
                                       Owen

     

 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]