Re: Translating co-ordinates from local to screen space

2010-06-11 Thread Tadej Borovšak
Hello. > I'm trying to translate co-ordinates from local widget space into screen > space and back again. Is that possible with GTK? gdk_window_get_root_coords() or gdk_window_get_origin() will be of interest in this situation. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com t

Re: Translating co-ordinates from local to screen space

2010-06-11 Thread jcupitt
On 11 June 2010 11:50, Matthew Allen wrote: > I'm trying to translate co-ordinates from local widget space into screen > space and back again. Is that possible with GTK? You can use _get_allocation() to get the size and position of a widget within it's parent: http://library.gnome.org/devel/gtk/