[9136] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] RE: Minimizing/iconizing and maximizing/restoring window

daemon@ATHENA.MIT.EDU (Damon Chaplin)
Fri Oct 9 17:38:40 1998

From: "Damon Chaplin" <DAChaplin@email.msn.com>
To: <gtk-list@redhat.com>
Date: Fri, 9 Oct 1998 22:42:40 +0100
In-Reply-To: <19981010022027.A14742@szap.halls.monash.edu.au>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


> How do you minimize or maximize a window using GTK? I've skimmed
> through the sources (both 1.0 and 1.1) but it seems to be
> unimplemented.
> 
> Specifically, I'm trying to write a program that deiconize itself
> (and possibly taking focus, depending on WM) after an event has
> occured. Currently using Gtk (the Perl bindings).

To uniconify a window I use this:

  gdk_window_show (window->window);

I use this as well, but I'm not sure if its needed:
  gdk_window_raise (window->window);

I think iconifying & maximizing is a bit trickier. It's probably
explained in the ICCCM (Inter-Client Communication Convention
Manual (?)) - part of the free X documentation (xbooks).


These do need to be added to GDK, by the way.
(As well as a way of getting a window's real position, including WM
decorations - do you just need to walk up the X window tree with
XQueryTree until you find the root window?)

I think it's also about time GTK's TODO file was updated!
(Delete it and start again!)

Damon


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post