Re: [gtk-list] Re: Dialog Boxes - help
- From: Havoc Pennington <hp redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Dialog Boxes - help
- Date: Sat, 2 Oct 1999 20:38:45 -0400 (EDT)
On Fri, 1 Oct 1999, Mark Volpe wrote:
> Well, I've given up on preventing the delete events, and instead just
> trying to make the dialog exit cleanly if someone closes an application
> window.
> But I need to detect if the application wants to exit.
>
> How do you tell if gtk_main_exit() has been called?
>
I think I missed the original question, I suspect there's a better way to
do this (in particular you should be able to ignore delete events...)
But, you can register a "quit function" with gtk_quit_add() (I think, look
in gtkmain.h and it will be obvious). You could also connect a callback
to "destroy" on some other window and destroy the dialog then. But note
that you don't have to destroy windows on application exit, they will just
go away.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]