Re: how to catch window manager close



On Fri, Jan 08, 2010 at 10:43:22AM -0500, Chris Bare wrote:
Can anyone point me to a tutorial or something on how to catch the window
manager close in GTK?

You must connect to "delete-event" and return TRUE from the handler to
prevent the default Gtk+ handler from being executed and destructing the
window afterwarsd.

I've attached gtk_widget hide to the about dialog's close, response and
destroy signal.

Connecting to "destroy" is pointless, if it comes to this you've already
missed the chances to prevent the destruction.

Yeti




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