RE: [gtk-list] Minimizing/iconizing and maximizing/restoring window
- From: "Damon Chaplin" <DAChaplin email msn com>
- To: <gtk-list redhat com>
- Subject: RE: [gtk-list] Minimizing/iconizing and maximizing/restoring window
- Date: Fri, 9 Oct 1998 22:42:40 +0100
> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]