Re: [gtk-list] Re: How to put a window on top ?



Stefan Ondrejicka wrote:
On Wed, 17 Nov 1999, Christian Orsatti wrote:

Hi,

> I have develop an interface with GTK. I have several popups that might
> be open at the same time. And I have not found the function to use to
> tell a popup to re-display itself on top.
> gtk_widget_show() won't do anything if the popup is already display.
> Thanks for your help

if (GTK_WIDGET_REALIZED(popup))
        gdk_window_raise(popup->window);

Ok and thanks, it work fine. But I think it is not nice to use the structure of a popup (ie popup->window) to acces the window field. Until now, for all the code I write, I never look at what was inside a structure.
So is there an over way to do that ?
Thanks again
-- 
Christian ORSATTI
Software Developpment Manager
Phone: +33 (0)4 93 95 72 62
Fax:   +33 (0)4 93 95 83 29
mailto:orsatti@istar.fr
Check my best band: http://www.marillion.com
 

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