Finding out a widget's parent



How does one find out the widget's parent (i.e., it's immediately
enclosing container). I've thought about writing a wrapper for
gtk_widget->parent, but noticed there doesn't seem to be a way of finding
out _what type of widget it is_ -- or is there?

Is there another way of picking up it's parent? Using get_ancestor,
perhaps?

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 272 3330 | NMFL





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