Re: Inspecting a Gtk2::GladeXML object
- From: muppet <scott asofyet org>
- To: Daniel Kasak <dkasak nusconsulting com au>
- Cc: gtk-perl-list gnome org
- Subject: Re: Inspecting a Gtk2::GladeXML object
- Date: Fri, 23 Jun 2006 07:33:19 -0400
On Jun 23, 2006, at 1:09 AM, Daniel Kasak wrote:
Hi all.
Is there a way to list all widgets in a Glade XML file?
It would be nice if I could iterate over them without knowing what
they
are in advance ...
The get_widget_prefix() method allows you to look up all widgets
whose glade name begins with a given string. If the string is blank,
you get all of them.
@widgets = $gladexml->get_widget_prefix ("");
This is implemented in GtkGladeXML.xs, but not documented in the POD
for some reason...
--
Holy crap, dude, we have kids!
-- Elysse, six days after giving birth to twins
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]