[evince/wip/gpoo/fix-1638] shell: Enable annotation actions only in document that supports them
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/gpoo/fix-1638] shell: Enable annotation actions only in document that supports them
- Date: Thu, 22 Jul 2021 17:50:58 +0000 (UTC)
commit 813fa1ca5067e54aacbe46f289fd3073bf8a8ec7
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Thu Jul 22 13:47:23 2021 -0400
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 36ae3a2c..634caafa 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 &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]