Re: how to catch window manager close
- From: David NeÄas <yeti physics muni cz>
- To: Chris Bare <chris bareflix com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how to catch window manager close
- Date: Fri, 8 Jan 2010 16:57:53 +0100
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]