[nautilus/wip/antoniof/gtk4-preparation-step-event-controllers: 26/35] window-slot: Add media key accel for search
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gtk4-preparation-step-event-controllers: 26/35] window-slot: Add media key accel for search
- Date: Wed, 22 Dec 2021 01:38:49 +0000 (UTC)
commit a0203f826ef94831cc2d4426cd09c0fd3bf878c9
Author: António Fernandes <antoniof gnome org>
Date: Sun Aug 8 10:36:48 2021 +0100
window-slot: Add media key accel for search
This accelerator has been set for a "win.search" action which
presumably used to exist in the past, but doesn't anymore.
Move it to the "slot.search-active" action.
src/nautilus-window-slot.c | 9 ++++++++-
src/nautilus-window.c | 1 -
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index d4da30fa5..5d783c0f1 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -1113,6 +1113,13 @@ static void
nautilus_window_slot_init (NautilusWindowSlot *self)
{
GApplication *app;
+ const gchar *search_visible_accels[] =
+ {
+ "<control>f",
+ "Search",
+ NULL
+ };
+
app = g_application_get_default ();
g_signal_connect (nautilus_trash_monitor_get (),
@@ -1142,7 +1149,7 @@ nautilus_window_slot_init (NautilusWindowSlot *self)
nautilus_application_set_accelerator (app,
"slot.files-view-mode(uint32 " G_STRINGIFY (NAUTILUS_VIEW_GRID_ID)
")",
"<control>2");
- nautilus_application_set_accelerator (app, "slot.search-visible", "<control>f");
+ nautilus_application_set_accelerators (app, "slot.search-visible", search_visible_accels);
self->view_mode_before_search = NAUTILUS_VIEW_INVALID_ID;
}
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 940cbeeb4..3ed6ecd19 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -179,7 +179,6 @@ static const struct
{ GDK_KEY_OpenURL, "enter-location" },
{ GDK_KEY_Refresh, "reload" },
{ GDK_KEY_Reload, "reload" },
- { GDK_KEY_Search, "search" },
{ GDK_KEY_Start, "go-home" },
{ GDK_KEY_Stop, "stop" },
{ GDK_KEY_Back, "back" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]