Re: setting/getting window pos & size with gtk/gdk
- From: Martyn Russell <ginxd btopenworld com>
- To: Christian Kleinert <kleinert iam-service de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: setting/getting window pos & size with gtk/gdk
- Date: Fri, 13 Sep 2002 23:12:10 +0100
Christian Kleinert wrote:
hello!
problem:
when setting the size or position with gtk or gdk functions, the window will be drawn at the new pos with the
new size. but when reading the pos and size with
gdk_window_get_origin(window->window, &x, &y);
dont you want this instead?
http://developer.gnome.org/doc/API/2.0/gdk/gdk-windows.html#gdk-window-get-position
gdk_window_get_size(window->window, &b, &h);
and
http://developer.gnome.org/doc/API/2.0/gdk/gdk-windows.html#gdk-window-get-deskrelative-origin
or
http://developer.gnome.org/doc/API/2.0/gdk/gdk-windows.html#gdk-window-get-root-origin
always the old values are given back.
does anyone know what has to ben done to save the new values?
thanx,
christian.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]