Re: [gtk-list] Re: x and y location?



On 8 May 1998, Rob Browning wrote:

> Doug South <dsouth@squirrel.net> writes:
> 
> > How can I find the x and y location of a widget?
> 
>   gdk_window_get_origin(widget->window, ...);

uhm, i seem to have missed the original post, but anyways it's usually
easier (and won't fail for unrealized widgets) if you use
widget->allocation.x and widget->allocation.y ;)

> 
> -- 
> Rob Browning <rlb@cs.utexas.edu>
> 

---
ciaoTJ



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