Re: [gtk-list] Re: position



Tim Janik wrote:
> 
> On Sat, 26 Jun 1999, Harold Campbell wrote:
> 
> > Is there a dependable way to find the physical x/y coordinates of a
> > widget?
> 
> a widget relative to its parent?
> widget->allocation.x/y

Knew this one; not what I need.

> a widget's window relative to the root window?
> gdk_window_get_geometry (widget->window,...)

When I read this I thought it was what I wanted, but it returns 0,0 just
like above. Why?

> a window widgets window manager frame position (i.e. for --geometry option)?
> gdk_window_get_deskrelative_origin (widget->window,...)
> 

I thought this one would give me some funky WM specific coordinates, but
it seems to be exactly what I needed. Thanks!

--
Harold



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