geometry of gtk window relative to root window



HI

How does one get the geometry of a gtk window relative to the root?
I tried

   my $width  = $widget->allocation->[0];
   my $height = $widget->allocation->[1];

but that always returns 0...

jos



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