From 0a41c483a8fe6608d0c75fe52401057be4718d482c8191c129a69b431f4ae1a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Tue, 5 Oct 2021 12:46:56 +0000 Subject: [PATCH] Accepting request 922947 from GNOME:Next - Add 2a6b5aa.patch: Fix search box focus when very first search in window is in note (boo#1191141). OBS-URL: https://build.opensuse.org/request/show/922947 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gnote?expand=0&rev=145 --- 2a6b5aa.patch | 26 ++++++++++++++++++++++++++ gnote.changes | 6 ++++++ gnote.spec | 3 ++- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 2a6b5aa.patch diff --git a/2a6b5aa.patch b/2a6b5aa.patch new file mode 100644 index 0000000..a4fce0c --- /dev/null +++ b/2a6b5aa.patch @@ -0,0 +1,26 @@ +From 2a6b5aa4a5ebc1390854e252a6129203f2fad47c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Aurimas=20=C4=8Cernius?= +Date: Sun, 3 Oct 2021 21:05:37 +0300 +Subject: [PATCH] Fix search box focus when very first search in window is in + note. + +Fixes https://gitlab.gnome.org/GNOME/gnote/-/issues/108 +--- + src/recentchanges.cpp | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp +index e2a0847b..34ef6d4f 100644 +--- a/src/recentchanges.cpp ++++ b/src/recentchanges.cpp +@@ -258,7 +258,6 @@ namespace gnote { + m_search_box->set_hexpand(false); + m_search_box->attach(*m_search_entry, 0, 0, 1, 1); + m_search_box->set_halign(Gtk::ALIGN_CENTER); +- m_search_box->show(); + + auto content = dynamic_cast(m_embed_box.get_parent()); + if(content) { +-- +GitLab + diff --git a/gnote.changes b/gnote.changes index f262e4f..3e7ffb9 100644 --- a/gnote.changes +++ b/gnote.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 4 08:12:17 UTC 2021 - Dominique Leuenberger + +- Add 2a6b5aa.patch: Fix search box focus when very first search + in window is in note (boo#1191141). + ------------------------------------------------------------------- Sun Sep 26 16:04:39 UTC 2021 - Bjørn Lie diff --git a/gnote.spec b/gnote.spec index 87dacf0..85bd631 100644 --- a/gnote.spec +++ b/gnote.spec @@ -27,7 +27,8 @@ Group: Productivity/Text/Editors URL: https://wiki.gnome.org/Apps/Gnote Source0: https://download.gnome.org/sources/gnote/41/%{name}-%{version}.tar.xz Source99: gnote-rpmlintrc - +# PATCH-FIX-UPSTREAM 2a6b5aa.patch boo#1191141 dimstar@opensuse.org -- Fix search box focus when very first search in window is in note. +Patch0: https://gitlab.gnome.org/GNOME/gnote/-/commit/2a6b5aa.patch BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: gcc-c++