[empathy] Cancel existing group animation before starting another



commit d30b840853d62cc54574372aeee1dd85d9b04aab
Author: Will Thompson <will thompson collabora co uk>
Date:   Tue Sep 22 15:24:04 2009 +0100

    Cancel existing group animation before starting another
    
    Fixes Gnome bug #595962.

 libempathy-gtk/empathy-cell-renderer-expander.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-cell-renderer-expander.c b/libempathy-gtk/empathy-cell-renderer-expander.c
index bd5c89f..481bb8a 100644
--- a/libempathy-gtk/empathy-cell-renderer-expander.c
+++ b/libempathy-gtk/empathy-cell-renderer-expander.c
@@ -428,6 +428,13 @@ empathy_cell_renderer_expander_start_animation (EmpathyCellRendererExpander *exp
 
 	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 {



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