Re: removing transient property of a window



I use the following code to make a menu window stay on top of the drawing
area window:
gtk_window_set_transient_for(GTK_WINDOW(menu_window),
GTK_WINDOW(draw_area));
This works great except that if the drawing area window is destroyed then
the other window disappears with it.... How can I remove the transient
properties of the menu when the drawing is closed?

If menu_window outlives the draw_area, it is by definition *not* transient
for the draw_area. 
Please don't misuse the transient_for property like this. If you really need
complete control of
the stacking order (why ?), then make the window override redirect and
suffer the consequences. 

Matthias

-- 
GMX Weihnachts-Special: Seychellen-Traumreise zu gewinnen!

Rentier entlaufen. Finden Sie Rudolph! Als Belohnung winken
tolle Preise. http://www.gmx.net/de/cgi/specialmail/

+++ GMX - die erste Adresse für Mail, Message, More! +++




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