have $widget, want GladeXML widget tree
| From: | James Cameron | Date: | Mon, 25 Nov 2002 08:00:44 +0000 |
| Subject: | have $widget, want GladeXML widget tree | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2727@lists.php.net to get a copy of this message | ||
In a callback, I'd prefer not to have a global pointing at my Glade
widget tree for the window. I just want the pointer to another widget
in the same toplevel. All I have is the widget name.
The source, in ext/libglade/libglade.defs suggests there is a function
to determine this;
(function get_widget_tree
(c-name glade_get_widget_tree)
(return-type GladeXML*)
(parameter (type-and-name GtkWidget* widget))
)
Now, while I know how to call this in C, how do I call it in PHP given
only the widget pointer?
--
James Cameron mailto:quozl@us.netrek.org http://quozl.netrek.org/