Re: setting/getting window pos & size with gtk/gdk
- From: Christian Kleinert <kleinert iam-service de>
- To: gtk-app-devel-list gnome org
- Subject: Re: setting/getting window pos & size with gtk/gdk
- Date: Mon, 16 Sep 2002 11:18:48 +0200
Hello!
At first I need to say, that I use GTK+1.2. Often I find interesting functions, but only available for GTK2.0.
The window I opened ist a GTK_WINDOW_TOPLEVEL. Trying to get it's parent results in segmentation fault.
cu
Christian.
On 16 Sep 2002 01:26:24 +0200
Nabil Sayegh <nas sayegh de> wrote:
On Fri, 2002-09-13 at 13:35, 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);
gdk_window_get_size(window->window, &b, &h);
always the old values are given back.
Are you sure the widget has it's own window ?
Probably the widget doesnt have an own window and you get the size of
the parent->window, which didn't change.
cu
--
e-trolley Sayegh & John, Nabil Sayegh
Tel.: 0700 etrolley /// 0700 38765539
Fax.: +49 69 8299381-8
PGP : www.e-trolley.de
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]