Re: [gtk-list] Un-minimizing a window?



On Fri, 03 Dec 1999 15:30:26 -0800, John Sullivan wrote:
> I've got a menu item that displays a particular window. When that window
> hasn't yet been shown, gtk_widget_show() does the right thing. When the
> window has been shown but is buried by other windows, gdk_window_raise()
> does what I want. But if the window has been minimized by the user,
> neither of these calls have any effect. I can sort of hack around it
> with
> 
>     if (GTK_WIDGET_VISIBLE(window))
>         gtk_widget_hide(window);
> 
>     gtk_widget_show(window);
> 
> but this is less than ideal: for example, it flickers if the window is
> on screen, and it moves the window back to its default position (which I
> could deal with separately, but never mind that).
> 
> Is there API lurking somewhere for un-minimizing a window? Or even to
> test whether a window is minimized?

Try XMapWindow() or XMapRaised(). gdk/gdkx.h has some macros to get the
parameters that these functions want.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/





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