Re: [gtk-list] How to redirect Alt-F4 to hide instead of destroy.



On Tue, 28 Sep 1999 09:29:52 +0200, Wolfgang Glas wrote:
> I just wrote a program that has two toplevel widgets, one permanently shown,
> one
> occcurring as an additional, modal, dialog. Everything works fine, but the only
> drawback is, that the additional dialog is destroyed instead of hidden when
> Alt-F4 is applied to the addditional dialog.
> 
> (My intention is to create the additional dialog once and just to hide and show
> it at the appropriate time.)
> 
>   I tried several workarounds and none was successful. I found the function
> gtk_widget_hide_on_delete, which seems to be a pre-defined signal handler, but
> I
> couldn't find any hint on how to use it. So any help is appreciated.

I think your window manager sends a destroy to the window as soon as
Alt-F4 is pressed. Configure your window manager to do a close or delete
instead.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]