Re: Finding which window hierarchy I'm in



James Curbo writes:
If you're doing what I think you are, this is already implemented in the 
Glade module. Check the POD for 'get_widget' which you call like so:

my $gladexml = Gtk2::GladeXML->new('blah.glade');
$gladexml->get_widget('quit_button');

Actually, I guess the real question is: Is there a better way to
instantiate multiple top level windows than two
Gtk2::GladeXML->new(...) calls? Because the way I'm doing multiple top
level windows is calling that again, and that way once I have a widget
I need to figure out which gladexml instantiation it belogs to,

The point is that with multiple "$gladexml"s, it's not enough to know
the name of the widget.

Muppet's solution would get there, but I'm a big believer in not
manually managing anything I don't have to, and I think his solution
involves altering all my signals in Glade.

Dan




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