Re: [gtk-list] Re: Window position / size

From: Stefan Wille <Stefan_Wille public uni-hamburg de>

To: gtk-list redhat com

Subject: Re: [gtk-list] Re: Window position / size

Date: Mon, 13 Oct 1997 20:20:54 +0200

Ian Main wrote:
> On Mon, 13 Oct 1997 jchrr@HRZ.Uni-Bielefeld.DE wrote:
>
> > Hi !
> >
> > I'd like to restore the last window-position/size, when I start
> gmix. Any
> > idea, how I could do this ? There is no "gtk_get_size" or
> "..get_position"
> > I found, yet, and I don't want to mess with internal GTK structures.
>
> >
> >
> void gdk_window_get_position (GdkWindow *window,
> gint *x,
Maybe you want to try gdb_window_get_origin instead, because at least
for me gdk_window_get_position didn't work as expected. It seems like
gdk_window_get_position returns a relative and gdb_window_get_origin
returns an absolute position.
bye
Stefan