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; });

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to