diff --git a/0001-language-dialog-focus-search-entry-on-display.patch b/0001-language-dialog-focus-search-entry-on-display.patch new file mode 100644 index 0000000..ebc7dbe --- /dev/null +++ b/0001-language-dialog-focus-search-entry-on-display.patch @@ -0,0 +1,26 @@ +From 6d74d46edbe463cdf868849daa7a1813a2169a99 Mon Sep 17 00:00:00 2001 +From: Christian Hergert +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 + diff --git a/gnome-text-editor.spec b/gnome-text-editor.spec index 9328643..9c6e3c1 100644 --- a/gnome-text-editor.spec +++ b/gnome-text-editor.spec @@ -7,12 +7,16 @@ Name: gnome-text-editor Version: 45~alpha -Release: 1%{?dist} +Release: 2%{?dist} Summary: A simple text editor for the GNOME desktop License: GPL-3.0-or-later URL: https://gitlab.gnome.org/GNOME/gnome-text-editor Source0: https://download.gnome.org/sources/%{name}/45/%{name}-%{tarball_version}.tar.xz +# https://gitlab.gnome.org/GNOME/gnome-text-editor/-/commit/6d74d46 +# https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/588 +# Focus the search box in the Document Type dialog on open +Patch0: 0001-language-dialog-focus-search-entry-on-display.patch BuildRequires: pkgconfig(editorconfig) BuildRequires: pkgconfig(enchant-2) >= %{enchant_version} @@ -73,6 +77,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.TextEditor. %changelog +* Wed Jul 05 2023 Adam Williamson - 45~alpha-2 +- Backport an upstream commit to focus Document Type search box on open + * Mon Jul 03 2023 Kalev Lember - 45~alpha-1 - Update to 45.alpha