diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2010-12-24 18:05:07 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-24 19:37:49 +0100 |
commit | 2bd221d2152299ca0aa0cd78702c58d2fd3d30d4 (patch) | |
tree | b9be48703d955bdac392d4bc67d0788ca39c0afc /gtk/gtkstylecontext.c | |
parent | 7f099a9a23255d4333b5d72df83ddb08a9812097 (diff) | |
download | gtk+-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.c | 8 |
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); } |