]> git.0d.be Git - empathy.git/commitdiff
Cancel existing group animation before starting another
authorWill Thompson <will.thompson@collabora.co.uk>
Tue, 22 Sep 2009 14:24:04 +0000 (15:24 +0100)
committerWill Thompson <will.thompson@collabora.co.uk>
Wed, 23 Sep 2009 11:28:48 +0000 (12:28 +0100)
Fixes Gnome bug #595962.

libempathy-gtk/empathy-cell-renderer-expander.c

index bd5c89f19cb094890d8d48f0fbc980b9eac7b3a5..481bb8a49306b63039e2a646bfb1bee1e5cce2af 100644 (file)
@@ -428,6 +428,13 @@ empathy_cell_renderer_expander_start_animation (EmpathyCellRendererExpander *exp
 
        priv = GET_PRIV (expander);
 
 
        priv = GET_PRIV (expander);
 
+       if (priv->animation_timeout != 0) {
+               g_source_remove (priv->animation_timeout);
+               priv->animation_timeout = 0;
+               gtk_tree_row_reference_free (priv->animation_node);
+               priv->animation_node = NULL;
+       }
+
        if (expanding) {
                priv->animation_style = GTK_EXPANDER_SEMI_COLLAPSED;
        } else {
        if (expanding) {
                priv->animation_style = GTK_EXPANDER_SEMI_COLLAPSED;
        } else {