How to minimize a Window ?

Linux specific forum
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

How to minimize a Window ?

Post by Hroudtwolf »

Good morning,

Do anyone knows how to minimze a window with pb for linux ?
I don't find any API in I-Net.
It's enough to drive a person mad.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

I am not at my Linux box right now, but I think you are looking for this:

gdk_window_iconify_(WindowID(#MyWindow))

to restore:

gdk_window_deiconify_(WindowID(#MyWindow))

Or you may need to use the "gtk" variant.

More info here.
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

the commands seems good but WIndowID() returns a GtkWindow, so you will have to get the GdkWindow out of it:

Code: Select all

*Window.GtkWidget = WindowID() ; Well yes, GtkWindow is a subclass of GtkWidget.
gdk_window_iconify_(*Window\window)
Post Reply