summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-04-04 12:14:28 +0300
committerraveit65 <[email protected]>2018-04-08 13:12:12 +0200
commit135e208287fdb864f7e536ff3a1a161a939e6102 (patch)
tree809899d7ffe49970ba8887fb30d5cd7f8be3091c
parentde8c0aed9820d1f62c2e94b70cc2ae0c9f2a0c6b (diff)
downloadatril-135e208287fdb864f7e536ff3a1a161a939e6102.tar.bz2
atril-135e208287fdb864f7e536ff3a1a161a939e6102.tar.xz
disable StartPresentation action in fullscreen if document has no pages
this also disables it when no document is loaded
-rw-r--r--shell/ev-window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 999106a3..a83cae31 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -514,6 +514,7 @@ ev_window_setup_action_sensitivity (EvWindow *ev_window)
ev_window_set_action_sensitive (ev_window, PAGE_SELECTOR_ACTION, has_pages);
ev_window_set_action_sensitive (ev_window, ZOOM_CONTROL_ACTION, has_pages);
ev_window_set_action_sensitive (ev_window, NAVIGATION_ACTION, FALSE);
+ ev_window_set_action_sensitive (ev_window, "StartPresentation", has_pages);
ev_window_update_actions (ev_window);
}