lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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