Recurse through whole widget tree?
- From: Neil Bird <neil fnxweb com>
- To: GTK Mailing List <gtk-list gnome org>
- Subject: Recurse through whole widget tree?
- Date: Thu, 02 Aug 2001 09:48:39 +0100
I'd like to recurse through an entire widget tree (actually
starting from a window). I'd hopeed it would be as simple as a
recursive GTK_IS_CONTAINER/foreach loop, but ... it's not.
Is there any simply trick? I understand that menus will be a
special case.
Here's what glade does the other way around (to find a
widget's window):
for (;;)
{
if (GTK_IS_MENU (widget))
parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
else
parent = widget->parent;
if (parent == NULL)
break;
widget = parent;
}
[ is there not a 'what's this widget's window' call? ]
--
=================- http://www.thalesgroup.com/ -================
Neil Bird Principal Engineer |
work - mailto:neil bird uk thalesgroup com | $> cd /pub
personal - mailto:neil fnxweb com | $> more beer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]