[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: not destroying windows
- From: "Gabor Szabo" <szabgab gmail com>
- To: "GTK2-Perl List" <gtk-perl-list gnome org>
- Subject: Re: not destroying windows
- Date: Mon, 21 Apr 2008 11:57:20 +0300
On Mon, Apr 21, 2008 at 10:09 AM, Emmanuele Bassi <ebassi gmail com> wrote:
>
> On Mon, 2008-04-21 at 09:40 +0300, Gabor Szabo wrote:
>
> > How can I make sure that when the [x] is clicked the window only gets
> > hidden and not destroyed?
>
> use the delete-event signal and hide it inside the handler:
>
> $dialog->signal_connect(delete_event => sub { $dialog->hide(); TRUE; });
>
thanks
Gabor
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]