[gnome-photos] main-toolbar: Use g_signal_object to track ItemManager connections
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-toolbar: Use g_signal_object to track ItemManager connections
- Date: Fri, 1 Aug 2014 17:17:22 +0000 (UTC)
commit 8795b5aede218e406066e8c92b33e6be2ce5601a
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Aug 1 19:04:58 2014 +0200
main-toolbar: Use g_signal_object to track ItemManager connections
... because PhotosItemManager is a singleton and can outlive
PhotosMainToolbar.
src/photos-main-toolbar.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 0d4cd43..71ab74c 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -611,10 +611,11 @@ photos_main_toolbar_populate_for_preview (PhotosMainToolbar *self)
remote_display_available = photos_dlna_renderers_manager_is_available ();
g_simple_action_set_enabled (G_SIMPLE_ACTION (remote_display_action), remote_display_available);
- g_signal_connect_swapped (priv->item_mngr,
- "active-changed",
- G_CALLBACK (photos_main_toolbar_item_active_changed),
- self);
+ g_signal_connect_object (priv->item_mngr,
+ "active-changed",
+ G_CALLBACK (photos_main_toolbar_item_active_changed),
+ self,
+ G_CONNECT_SWAPPED);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]