[gtk+] GtkStyleContext: Do not cancel possibly unstarted transitions



commit d5b0ccacce2179628b22d4f9ce9392625c106a7f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 10 23:16:09 2011 +0100

    GtkStyleContext: Do not cancel possibly unstarted transitions
    
    It might happen that this overcautious check is done on an animation
    that didn't have time to gather invalidation rectangles.

 gtk/gtkstylecontext.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index bad7409..326364c 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -3143,13 +3143,8 @@ _gtk_style_context_coalesce_animation_areas (GtkStyleContext *context,
       if (info->invalidation_region)
         continue;
 
-      /* There's not much point in keeping the animation running */
       if (info->rectangles->len == 0)
-        {
-          priv->animations = g_slist_remove (priv->animations, info);
-          animation_info_free (info);
-          continue;
-        }
+        continue;
 
       info->invalidation_region = cairo_region_create ();
       _gtk_widget_get_translation_to_window (widget, info->window, &rel_x, &rel_y);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]