Re: Iterating through children



Dimitar Haralanov wrote:

      Does any one know of a good way to iterate through all the
      children of a widget? What I need is to be able to reach every
      child of a top level window notebook page

The key function for this to use is gtk_container_get_children (). You
may have a look at my widget_find_by_name () function which demonstrates
how to use it recursively. Just rename the function and remove the
name-specific string comparisons and you should have what you were
looking for.

http://www.spamkiller.bytechase.cx/democode/widget_find_by_name.c



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