summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-12-24 18:05:07 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-24 19:37:49 +0100
commit2bd221d2152299ca0aa0cd78702c58d2fd3d30d4 (patch)
treeb9be48703d955bdac392d4bc67d0788ca39c0afc /gtk/gtkstylecontext.c
parent7f099a9a23255d4333b5d72df83ddb08a9812097 (diff)
downloadgtk+-2bd221d2152299ca0aa0cd78702c58d2fd3d30d4.tar.gz
BugĀ 637910 - GtkSpinner - does not animate
Fix widget-to-window coordinates translation in the style context animation code.
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index e42ebf8aac..162c97136c 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -3043,8 +3043,12 @@ _gtk_style_context_coalesce_animation_areas (GtkStyleContext *context,
cairo_rectangle_int_t *rect;
rect = &g_array_index (info->rectangles, cairo_rectangle_int_t, i);
- rect->x += rel_x;
- rect->y += rel_y;
+
+ /* These are widget relative coordinates,
+ * so have them inverted to be window relative
+ */
+ rect->x -= rel_x;
+ rect->y -= rel_y;
cairo_region_union_rectangle (info->invalidation_region, rect);
}