Re: setting/getting window pos & size with gtk/gdk



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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]