summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-09-05 14:27:50 +0200
committerraveit65 <[email protected]>2017-09-05 14:27:50 +0200
commitf632424397795ebbc2bb0e342aa1dcb077c8a47a (patch)
tree6edb51e069eb16e55dfbd54229dfaedf8033f065 /shell/ev-window.c
parent4e2981ae46261f3d4d715997bbc8dd4ee5dd5194 (diff)
downloadatril-f632424397795ebbc2bb0e342aa1dcb077c8a47a.tar.bz2
atril-f632424397795ebbc2bb0e342aa1dcb077c8a47a.tar.xz
shell: disable ViewDualOddLeft in menus for epubs
Dual mode isn't implemented for epubs
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 93b10a34..871c5a18 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -581,6 +581,12 @@ ev_window_update_actions (EvWindow *ev_window)
ev_window_set_action_sensitive (ev_window, "ViewDualOddLeft",
dual_mode);
}
+#if ENABLE_EPUB
+ else if (webview ) {
+ ev_window_set_action_sensitive (ev_window, "ViewDualOddLeft",
+ !dual_mode);
+ }
+#endif
/* Go menu */
if (has_pages) {
ev_window_set_action_sensitive (ev_window, "GoPreviousPage", page > 0);