Re: hiding windows when pressing on window manager (X)



>I would like to know, is there a way to tell GTK that when the user
>clicks on the
>window manager's (X) usually found in the upper right hand corner of window
>frames, the window is to be hidden instead of destroyed? This behavior is
>the one needed for child windows of parent windows which the main
>application usually just hides.

connect to the "delete" event for the windoe, and return TRUE in your
handler. this bypasses the usual handling of the event and leaves the
window.

--p



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