[gnome-photos/gnome-3-16] selection-controller: Fix the lifetime of the signal handler



commit 5561fdfa4cc53baf744a13e228542dde70f35930
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Mar 12 16:43:24 2015 +0100

    selection-controller: Fix the lifetime of the signal handler
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746104

 src/photos-selection-controller.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-selection-controller.c b/src/photos-selection-controller.c
index 5864aa3..725aa46 100644
--- a/src/photos-selection-controller.c
+++ b/src/photos-selection-controller.c
@@ -137,10 +137,11 @@ photos_selection_controller_init (PhotosSelectionController *self)
   state = photos_search_context_get_state (PHOTOS_SEARCH_CONTEXT (app));
 
   priv->item_mngr = g_object_ref (state->item_mngr);
-  g_signal_connect (priv->item_mngr,
-                    "object-removed",
-                    G_CALLBACK (photos_selection_controller_object_removed),
-                    self);
+  g_signal_connect_object (priv->item_mngr,
+                           "object-removed",
+                           G_CALLBACK (photos_selection_controller_object_removed),
+                           self,
+                           0);
 }
 
 


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