[gnome-control-center] Be robust against extraneous signal emissions



commit 8c9a1eec336f9687aff079f6322b12bfc550f852
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 12 15:22:33 2012 -0400

    Be robust against extraneous signal emissions
    
    It seems that we are occasionally get duplicate ClutterTimeline::completed
    emissions. Make the code robust against that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677946

 shell/cc-notebook.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index ac7ffd8..185c5f9 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -483,6 +483,7 @@ static void
 remove_on_complete (ClutterTimeline *timeline,
 		    RemoveData      *data)
 {
+        g_signal_handlers_disconnect_by_func (timeline, remove_on_complete, data);
 	data->notebook->priv->removed_pages = g_list_remove (data->notebook->priv->removed_pages, data);
 	clutter_actor_destroy (data->frame);
 	g_free (data);



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