Re: Closing a Glade Window
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-perl-list gnome org
- Subject: Re: Closing a Glade Window
- Date: Mon, 30 Oct 2006 12:09:21 +0000
Hi Cyril;
On Mon, 2006-10-30 at 12:43 +0100, Cyril Cheneson wrote:
My question is : how to close the window (from the Glade file) without
quitting the main application?
just ->hide() the window if you want to be able to ->show() it again
later.
if you want to handle the delete-event case automagically, you should
connect it to the hide_on_delete() method:
$window->signal_connect(delete_event => sub { $window->hide_on_delete(); });
or, if you don't have Gtk2::Widget::hide_on_delete you can implement it
like this:
$window->signal_connect(delete_event => sub { $window->hide(); TRUE; });
ciao,
Emmanuele.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]