]> Pileus Git - ~andy/gtk/commit
GtkRange: use the right widget for coordinate translation
authorCosimo Cecchi <ccechi@redhat.com>
Fri, 21 Oct 2011 20:30:34 +0000 (16:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2011 20:30:34 +0000 (16:30 -0400)
commit18a638a7d38178a85cc2ee868f601e0bb454c797
treefdb8be72ecbdc00f6bc17f9190df5be708c8f9bf
parent958fc69494d1d4ba4c7008f914945019ec11dc83
GtkRange: use the right widget for coordinate translation

GtkRange needs to check if its allocation intersects with the resize
grip allocation (trimming its own allocation if it does).
In order to do that, it needs to translate its allocation into window
coordinates, and before that, find the window to whose the allocation
is relative; code goes all the way finding the right parent widget, but
then doesn't actually use it when translating the coordinates, leading
to using the wrong rectangles for the intersection check.

https://bugzilla.gnome.org/show_bug.cgi?id=662308
gtk/gtkrange.c