RE: window always on top



Thanks for the reply.  

I created my application using Glade so I am not sure how to get the
parent window for each of the windows that are displayed.

Thanks again,

Lourdes

-----Original Message-----
From: Sven Neumann [mailto:sven gimp org] 
Sent: Wednesday, May 01, 2002 1:57 PM
To: Lourdes Maldonado
Cc: gtk-list gnome org
Subject: Re: window always on top

Hi,

"Lourdes Maldonado" <maldonado ibiquity com> writes:

> The main screen of my application takes up the entire screen (5"x4")
and
> I want it always to be visible.  My problem is that when I press a
> button that displays an entry form screen that is smaller than my main
> screen (so the main screen is still accessible) if I press on the main
> screen my entry window is hidden by the main screen.  I want my entry
> screen to stay on top of the main screen until I hide it by pressing
Ok
> or Cancel in the entry screen.

Make the dialog window transient for the application window using
gtk_window_set_transient_for():

 
http://developer.gnome.org/doc/API/2.0/gtk/gtkwindow.html#GTK-WINDOW-SET
-TRANSIENT-FOR


Salut, Sven



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