Re: Destroy Signal
- From: Sven Neumann <sven gimp org>
- To: CyborgHead netscape net
- Cc: gtk-list gnome org
- Subject: Re: Destroy Signal
- Date: 04 Mar 2001 20:13:01 +0100
CyborgHead netscape net writes:
> Just a quick question? I have written an application in GTK had have many dialog boxes. When I press the X button on the top right of the dialog box it is killed, and when I try and show the dialog box again I get a run time error, which is natural because by pressing the X Button, I killed the dialog box widget, instead of hiding it. Is there any way I can overwrite the X Button to hide the dialog box instead of killing it, or even disable this button to prevent this happening?
Your question is answered in the GTK tutorial. Basically, you need to
connect to the "delete_event" signal of the dialog box and return TRUE
from the signal handler if you want the window not to be destroyed.
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]