[glide] Actor finalization cycle all works again.



commit e415d0c4d4db247523d3447210781bc6a6a1a6ed
Author: Robert Carr <racarr Valentine localdomain>
Date:   Mon May 24 18:15:02 2010 -0400

    Actor finalization cycle all works again.

 libglide/glide-actor-priv.h |    2 --
 libglide/glide-actor.c      |    4 +---
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libglide/glide-actor-priv.h b/libglide/glide-actor-priv.h
index bce32e4..ad20775 100644
--- a/libglide/glide-actor-priv.h
+++ b/libglide/glide-actor-priv.h
@@ -29,8 +29,6 @@ struct _GlideActorPrivate
   GlideStageManager *manager;
   
   gboolean selected;
-  
-  gulong selection_changed_id;
 };
 
 G_END_DECLS
diff --git a/libglide/glide-actor.c b/libglide/glide-actor.c
index c61bf99..b02ec12 100644
--- a/libglide/glide-actor.c
+++ b/libglide/glide-actor.c
@@ -66,8 +66,6 @@ static void
 glide_actor_finalize (GObject *object)
 {
   GlideActor *actor = (GlideActor *)object;
-  if (actor->priv->selection_changed_id)
-    g_signal_handler_disconnect (actor->priv->manager, actor->priv->selection_changed_id);
 
   G_OBJECT_CLASS (glide_actor_parent_class)->finalize (object);
 }
@@ -126,7 +124,7 @@ glide_actor_set_stage_manager_real (GlideActor *actor,
   g_return_if_fail (actor->priv->manager == NULL || actor->priv->manager == manager);
   actor->priv->manager = manager;
 
-  actor->priv->selection_changed_id = g_signal_connect (actor->priv->manager, "selection-changed",
+  g_signal_connect (actor->priv->manager, "selection-changed",
 							G_CALLBACK (glide_actor_selection_changed_callback),
 							actor);
   g_object_notify (G_OBJECT (actor), "stage-manager");



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