Re: how open a window close by the window manager



open and close a window, but if the window is closed manually ("Open" button or
"close" function menu) with the window manager, gtk_widget_show() do nothing.
The window manager not only "closes" your window, but destroys the
associated widget. You need to intercept the "delete_event" that is issued
in this case, and hide the widget instead (or be prepared to recreate it as 
needed).

 How to detect the iconic state? 
Wildly guessing here - maybe it reports different position or geometry values 
in this state. You could also try to access the underlying X data structures
directly (which would probably reduce portability of your software).

HTH,
Martin
-- 
Dr. Martin Kroeker, daveg GmbH Darmstadt  CAD/CAM/CAQ  mk daveg com
                      Precision Powered by Penguins



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