Blame SOURCES/evince-40.4-annotation-actions.patch

485247
From 31ad19f0812212412b01cc933c9c1806245735ff Mon Sep 17 00:00:00 2001
485247
From: =?UTF-8?q?Germ=C3=A1n=20Poo-Caama=C3=B1o?= <gpoo@gnome.org>
485247
Date: Thu, 22 Jul 2021 13:47:23 -0400
485247
Subject: [PATCH] shell: Enable annotation actions only in document that
485247
 supports them
485247
485247
Fixes #1638
485247
---
485247
 shell/ev-window.c | 4 ++++
485247
 1 file changed, 4 insertions(+)
485247
485247
diff --git a/shell/ev-window.c b/shell/ev-window.c
485247
index fab121ca..0043074a 100644
485247
--- a/shell/ev-window.c
485247
+++ b/shell/ev-window.c
485247
@@ -532,6 +532,10 @@ ev_window_update_actions_sensitivity (EvWindow *ev_window)
485247
 				      !recent_view_mode);
485247
 	ev_window_set_action_enabled (ev_window, "toggle-find", can_find &&
485247
 				      !recent_view_mode);
485247
+	ev_window_set_action_enabled (ev_window, "add-annotation", can_annotate &&
485247
+				      !recent_view_mode);
485247
+	ev_window_set_action_enabled (ev_window, "highlight-annotation", can_annotate &&
485247
+				      !recent_view_mode);
485247
 	ev_window_set_action_enabled (ev_window, "toggle-edit-annots", can_annotate &&
485247
 				      !recent_view_mode);
485247
 	ev_window_set_action_enabled (ev_window, "rotate-left", has_pages &&
485247
-- 
485247
2.34.1
485247