Re: how to catch window manager close
- From: Tadej BorovÅak <tadeboro gmail com>
- 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:52:53 +0100
Hello.
When window is asked to be closed by window manager, it'll will
receive "delete-event" signal. If you wish to prevent your window to
be destroyed, simply return TRUE from this function, which will
prevent default handler destroying your window.
There is also a utility function that will hide window for you:
gtk_widget_hide_on_delete()[1].
Tadej
[1] http://library.gnome.org/devel/gtk/stable/GtkWidget.html#gtk-widget-hide-on-delete
--
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]