list of all child widgets



Hi, I just signed up.

How do I get a list of all child widgets, recursively down the
hierarchy?

I tried
    gtk_container_foreach()
but it only gives me the immediate child.  If I have something like

    vbox -- hbox +-- label
                 |
                 +-- button
         
and if I call gtk_container_foreach() for 'vbox', I only get 'hbox'.  I
can keep a list of what I added, but it would be nice to avoid such
bookkeeping.

-- 
William Park <opengeometry yahoo ca>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
	   http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
	  http://freshmeat.net/projects/bashdiff/



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