number of GtkContainer childs ?



hi,

is there a way with gtk+ or gtk-- to get the number 
of the children of a container?

to be more explicit: 
is there a way to get the number of items in a GtkList?


with gtk-- i would like to write in analogy to
C++'s STL ..

 Gtk_Menu my_menu;
 // .. add some menuitems

 Gtk_Container *container = my_menu;
 guint num = container.size();



with gtk+ i would look for a function like 

 guint gtk_list_get_number_of_items(GtkList *) 


any clue?
do i have to use gtk_container_forall() ?

mfg
peter lerner



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