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

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