From d5b0ccacce2179628b22d4f9ce9392625c106a7f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 10 Jan 2011 23:16:09 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index bad7409a90..326364cf45 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);