[gnome-photos/gnome-3-12] main-toolbar: Remove useless signal connections
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-12] main-toolbar: Remove useless signal connections
- Date: Mon, 17 Mar 2014 13:08:06 +0000 (UTC)
commit 25b6e1f544cb9f7ac3e2ba6684e4a591af5447d3
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Mar 17 13:31:42 2014 +0100
main-toolbar: Remove useless signal connections
We do not use PhotosSourceManager or any of the sources in it while
setting the title. Hence there is no need to listen for the active
source.
Fixes: https://bugzilla.gnome.org/726519
src/photos-main-toolbar.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index fa6c1f4..c1063e6 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -58,7 +58,6 @@ struct _PhotosMainToolbarPrivate
GtkWidget *toolbar;
PhotosBaseManager *col_mngr;
PhotosBaseManager *item_mngr;
- PhotosBaseManager *src_mngr;
PhotosModeController *mode_cntrlr;
PhotosRemoteDisplayManager *remote_mngr;
PhotosSelectionController *sel_cntrlr;
@@ -621,7 +620,6 @@ photos_main_toolbar_dispose (GObject *object)
g_clear_object (&priv->searchbar);
g_clear_object (&priv->col_mngr);
g_clear_object (&priv->item_mngr);
- g_clear_object (&priv->src_mngr);
g_clear_object (&priv->mode_cntrlr);
g_clear_object (&priv->remote_mngr);
g_clear_object (&priv->sel_cntrlr);
@@ -711,13 +709,6 @@ photos_main_toolbar_init (PhotosMainToolbar *self)
priv->col_mngr = g_object_ref (state->col_mngr);
priv->item_mngr = photos_item_manager_dup_singleton ();
- priv->src_mngr = g_object_ref (state->src_mngr);
- g_signal_connect_object (priv->src_mngr,
- "active-changed",
- G_CALLBACK (photos_main_toolbar_set_toolbar_title),
- self,
- G_CONNECT_SWAPPED);
-
priv->mode_cntrlr = photos_mode_controller_dup_singleton ();
priv->sel_cntrlr = photos_selection_controller_dup_singleton ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]