[nautilus/wip/antoniof/streamlin-preview-updating: 2/2] Revert "window: add a signal to receive active selection updates"
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/streamlin-preview-updating: 2/2] Revert "window: add a signal to receive active selection updates"
- Date: Wed, 26 May 2021 23:02:28 +0000 (UTC)
commit c0a7de532dad72cf09a83ed14ce4c76453fc1f98
Author: António Fernandes <antoniof gnome org>
Date: Wed May 26 13:48:34 2021 +0100
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.
src/nautilus-window.c | 23 -----------------------
1 file changed, 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]