Re: Closing a window to trigger the 'delete_event' signal
- From: Francois Marier <francois nit ca>
- To: gtk-perl-list gnome org
- Subject: Re: Closing a window to trigger the 'delete_event' signal
- Date: Wed, 28 Jul 2004 20:57:16 -0400
On Thu, Jul 29, 2004 at 02:39:47AM +0200, Torsten Schoenfeld wrote:
Oh, looks like something changed in some wrapper code then. If you use
Gtk2::Gdk::Event -> new("nothing")
instead of undef, it should work with Gtk2 >= 1.031, though.
Thanks, it works now!
So is this the idiomatic way to do close a Window in GTK2 ?
I was somehow expecting to be able to do something like
$window->close() and have it check the signal and do the right thing.
All the tutorials I've seen either call $window->destroy() or
Gtk2->main_quit directly, bypassing the delete_event completely.
] [Thread Prev