[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [lgi/gtk] Hiding and then restoring a window ?
- From: Pavel Holejsovsky <pavel.holejsovsky@...>
- Date: Sun, 22 Jul 2012 17:40:09 +0000 (UTC)
Hi Laurent,
> [blablabla my wingets here blablabla]
> on_destroy = function ()
> window:hide()
> end
> }
I think you want to connect to delete_event instead, see http://
developer.gnome.org/gtk3/3.2/GtkWidget.html#GtkWidget-delete-event
So something like this should work (untested):
on_delete_event = function () window:hide() return true end
or even
on_delete_event = Gtk.Widget.hide_on_delete
HTH,
pavel