summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2021-05-26 13:48:34 +0100
committerOndrej Holy <oholy@redhat.com>2021-07-02 06:28:01 +0000
commit1c88f37d5f9fdab8cd2d130b8539a8cbd3e20276 (patch)
treec62a135948b0adb3484586b904f4af8ce3d68b68
parentae67618bda72fb0ca14cf45b5160c6bb41eb5a22 (diff)
downloadnautilus-1c88f37d5f9fdab8cd2d130b8539a8cbd3e20276.tar.gz
Revert "window: add a signal to receive active selection updates"
This reverts commit 54d1ad250e484f4a34cccba51ed6fab457976d46. This signal has been added because NautilusApplication needed to update the previewer when selection changes. It no longer does that, since the previous commit, so this signal is no longer needed.
-rw-r--r--src/nautilus-window.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 53a4fa527..2215903d9 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -158,7 +158,6 @@ enum
{
SLOT_ADDED,
SLOT_REMOVED,
- ACTIVE_SELECTION_CHANGED,
LAST_SIGNAL
};
@@ -466,18 +465,6 @@ on_slot_location_changed (NautilusWindowSlot *slot,
}
}
-
-static void
-on_slot_selection_changed (NautilusWindowSlot *slot,
- GParamSpec *pspec,
- NautilusWindow *window)
-{
- if (nautilus_window_get_active_slot (window) == slot)
- {
- g_signal_emit (window, signals[ACTIVE_SELECTION_CHANGED], 0);
- }
-}
-
static void
notebook_switch_page_cb (GtkNotebook *notebook,
GtkWidget *page,
@@ -504,8 +491,6 @@ connect_slot (NautilusWindow *window,
{
g_signal_connect (slot, "notify::location",
G_CALLBACK (on_slot_location_changed), window);
- g_signal_connect (slot, "notify::selection",
- G_CALLBACK (on_slot_selection_changed), window);
}
static void
@@ -2465,7 +2450,6 @@ nautilus_window_set_active_slot (NautilusWindow *window,
nautilus_toolbar_set_window_slot (NAUTILUS_TOOLBAR (window->toolbar), new_slot);
on_location_changed (window);
- g_signal_emit (window, signals[ACTIVE_SELECTION_CHANGED], 0);
}
}
@@ -2865,13 +2849,6 @@ nautilus_window_class_init (NautilusWindowClass *class)
NULL, NULL,
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, NAUTILUS_TYPE_WINDOW_SLOT);
- signals[ACTIVE_SELECTION_CHANGED] =
- g_signal_new ("active-selection-changed",
- G_TYPE_FROM_CLASS (class),
- G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
- 0,
- NULL, NULL, NULL,
- G_TYPE_NONE, 0);
g_signal_connect_swapped (nautilus_preferences,
"changed::" NAUTILUS_PREFERENCES_MOUSE_BACK_BUTTON,