[empathy/gnome-2-28] Cancel existing group animation before starting another
- From: Will Thompson <wjt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-28] Cancel existing group animation before starting another
- Date: Wed, 23 Sep 2009 11:29:21 +0000 (UTC)
commit 6e64203a5b4cf4e080c767fe733f6da96606ab05
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]