Re: question about the "destroy" signal
- From: Sven Neumann <sven gimp org>
- To: Johnathan Wang <Johnathan Wang morganstanley com>
- Cc: <gtk-list gnome org>
- Subject: Re: question about the "destroy" signal
- Date: 08 Aug 2002 11:06:18 +0200
Hi,
Daniel Carrera <dcarrera math toronto edu> writes:
> Catch the "delete_event" signal instead.
>
> When you try to close a window, the window manager sends a
> "delete_event". You can connect that signal to a function. If this
> function returns TRUE, the window is not closed. If the function returns
> FALSE, then Gtk sends a "destroy" event, which always destroys the
> widget.
you can use gtk_widget_hide_on_delete() as the function to connect
to the delete_event. It does exactly what Daniel described above.
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]