gnome-text-editor/0001-language-dialog-focus-search-entry-on-display.patch
Adam Williamson 33072eac07 Backport an upstream commit to focus Document Type search box on open
This will help the openQA test; it's easier to just backport this
fix than it is to teach openQA to click in the search box...
2023-07-05 12:06:39 -07:00

27 lines
778 B
Diff

From 6d74d46edbe463cdf868849daa7a1813a2169a99 Mon Sep 17 00:00:00 2001
From: Christian Hergert <chergert@redhat.com>
Date: Wed, 5 Jul 2023 11:53:04 -0700
Subject: [PATCH] language-dialog: focus search entry on display
Fixes #588
---
src/editor-language-dialog.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/editor-language-dialog.c b/src/editor-language-dialog.c
index c692bcc..a2bee99 100644
--- a/src/editor-language-dialog.c
+++ b/src/editor-language-dialog.c
@@ -224,6 +224,8 @@ editor_language_dialog_constructed (GObject *object)
editor_language_dialog_create_row_cb,
self,
NULL);
+
+ gtk_widget_grab_focus (GTK_WIDGET (self->search_entry));
}
static void
--
2.41.0