[nautilus/wip/antoniof/gtk4-preparation-step-event-controllers: 14/22] 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: 14/22] window-slot: Add media key accel for search
- Date: Wed, 11 Aug 2021 08:37:35 +0000 (UTC)
commit d3dd081b01c4f8e917a3d272960421540f6c3672
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 ser 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 4f93f67c8..8d6a4cde3 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -1126,6 +1126,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 (),
@@ -1155,7 +1162,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 54566b94d..0a02347f4 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -178,7 +178,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]