Re: Finding which window hierarchy I'm in
- From: Dan Lyke <danlyke flutterby com>
- To: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: Finding which window hierarchy I'm in
- Date: Sun, 21 Sep 2003 13:47:49 -0700
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]