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...
This commit is contained in:
Adam Williamson 2023-07-05 12:06:39 -07:00
parent ea7253634b
commit 33072eac07
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,26 @@
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

View File

@ -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 <awilliam@redhat.com> - 45~alpha-2
- Backport an upstream commit to focus Document Type search box on open
* Mon Jul 03 2023 Kalev Lember <klember@redhat.com> - 45~alpha-1
- Update to 45.alpha