Re: question about the "destroy" signal


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]