[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I wrote a user interface with glade in which there is a sub window (called
> from a main window).
> 
> To exit from this subwindow I setup a File->exit menu.
> 
> In the exit function I reset some variables.
> 
> Of course I saw some users exiting from the subwindow by clicking the cross
> icon (in the top rigth angle of the window).
> And this way my variables are not reset.
> 
> Is there a way to avoid this ?

Yes, connect to the "delete-event" signal of the window - this signal is
emitted when the cross icon is clicked.

You should return TRUE if you have handled the event.

Damon


_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to