Re: deactivating close button of a gtk+ window / dialog



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]