Re: deactivating close button of a gtk+ window / dialog
- From: Preben Randhol <randhol+gtk pvv org>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: Bharat Bhushan <bharat CS Arizona EDU>, gtk-list gnome org
- Subject: Re: deactivating close button of a gtk+ window / dialog
- Date: Fri, 25 Jul 2003 13:40:02 +0200
Paul Davis <paul linuxaudiosystems com> wrote on 25/07/2003 (08:18) :
> catch the top level window delete_event, do nothing in the handler,
> return TRUE.
Or a better solution might be to pop up a dialog saying "Shutting down
system. Please wait while critical data is saved" or something like
that. And run a loop which will do a gtk exit when the critical phase
has passed and a flag has bee set.
Otherwise if this takes some time the user might kill the app in stead
as it thinks it has hung or something.
--
Preben Randhol -------------- http://www.pvv.org/~randhol/Ada95 --
«For me, Ada95 puts back the joy in programming.»
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]