Re: How to make a window "undeletable"
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: Maulet <llistes_lfs yahoo es>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to make a window "undeletable"
- Date: Wed, 26 Jan 2005 17:44:48 +0100
On Wed, Jan 26, 2005 at 05:32:43PM +0000, Maulet wrote:
I want to display an information modal dialog while running a critical
process in the background, and so I want to prevent the user from
destroying the dialog.
Currently I connect the "delete-event" to a signal handler that does
nothing. But I guess there must be a more elegant way to get the same
effect.
All "something-event" handlers must return whether event
processing is finished (see Gtk+ docs). In this case, if
your handler returns TRUE, default handler that would
destroy the window is not run. So, return TRUE.
Yeti
--
Dynamic IP address is not a crime.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]