[gtk+] Bug 637910 - GtkSpinner - does not animate
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Bug 637910 - GtkSpinner - does not animate
- Date: Fri, 24 Dec 2010 18:49:58 +0000 (UTC)
commit 2bd221d2152299ca0aa0cd78702c58d2fd3d30d4
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Dec 24 18:05:07 2010 +0100
Bug 637910 - GtkSpinner - does not animate
Fix widget-to-window coordinates translation in the
style context animation code.
gtk/gtkstylecontext.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index e42ebf8..162c971 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]