Close Gtk.Window modal in Genie

167 Views Asked by At

I'm not sure what is the best way to close a modal window (this is a Gtk.Window defined as window.set_modal (true) and not a Gtk.Dialog).

I want to use a button in the window connected to a function with Gtk.WIndow.destroy (), but it does not work well.

I read that you should use "delete-event" but I do not know how to implement it. Does anyone have an example in Genie? Thank you.

0

There are 0 best solutions below