[EMAIL PROTECTED] 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

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to