From 767f29e01aa36ed87101f555f3710ecefc033db1 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 1 Mar 2022 06:08:24 -0500 Subject: [PATCH] import evince-40.4-4.el9 --- SOURCES/evince-40.4-annotation-actions.patch | 29 ++++++++++++++++++++ SPECS/evince.spec | 9 +++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 SOURCES/evince-40.4-annotation-actions.patch diff --git a/SOURCES/evince-40.4-annotation-actions.patch b/SOURCES/evince-40.4-annotation-actions.patch new file mode 100644 index 0000000..a4bba00 --- /dev/null +++ b/SOURCES/evince-40.4-annotation-actions.patch @@ -0,0 +1,29 @@ +From 31ad19f0812212412b01cc933c9c1806245735ff Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Germ=C3=A1n=20Poo-Caama=C3=B1o?= +Date: Thu, 22 Jul 2021 13:47:23 -0400 +Subject: [PATCH] shell: Enable annotation actions only in document that + supports them + +Fixes #1638 +--- + shell/ev-window.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/shell/ev-window.c b/shell/ev-window.c +index fab121ca..0043074a 100644 +--- a/shell/ev-window.c ++++ b/shell/ev-window.c +@@ -532,6 +532,10 @@ ev_window_update_actions_sensitivity (EvWindow *ev_window) + !recent_view_mode); + ev_window_set_action_enabled (ev_window, "toggle-find", can_find && + !recent_view_mode); ++ ev_window_set_action_enabled (ev_window, "add-annotation", can_annotate && ++ !recent_view_mode); ++ ev_window_set_action_enabled (ev_window, "highlight-annotation", can_annotate && ++ !recent_view_mode); + ev_window_set_action_enabled (ev_window, "toggle-edit-annots", can_annotate && + !recent_view_mode); + ev_window_set_action_enabled (ev_window, "rotate-left", has_pages && +-- +2.34.1 + diff --git a/SPECS/evince.spec b/SPECS/evince.spec index f49f5db..5870e4e 100644 --- a/SPECS/evince.spec +++ b/SPECS/evince.spec @@ -4,7 +4,7 @@ Name: evince Version: 40.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Document viewer License: GPLv2+ and GPLv3+ and LGPLv2+ and MIT and Afmparse @@ -17,6 +17,9 @@ Patch1: evince-40.1-covscan.patch # https://bugzilla.redhat.com/show_bug.cgi?id=2006768 Patch2: evince-40.4-quit-shortcut.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=2041333 +Patch3: evince-40.4-annotation-actions.patch + BuildRequires: gcc-c++ BuildRequires: gcc BuildRequires: gettext-devel @@ -269,6 +272,10 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p %{_mandir}/man1/evince-previewer.1* %changelog +* Wed Jan 19 2022 Marek Kasik - 40.4-4 +- Allow annotation actions for PDFs only +- Resolves: #2041333 + * Tue Nov 02 2021 Marek Kasik - 40.4-3 - Remove Ctrl+q shortcut from shortcuts page - because it does nothing.