summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-04-04 12:14:28 +0300
committermonsta <[email protected]>2018-04-09 11:40:35 +0300
commit1c14dc96ca40048ecb290962005f6100074b59d8 (patch)
tree6da817476ae48e2974353343fdf228324caa4288
parentb1d39dbe2b1af7f8567f4558abefd1eb447edfd7 (diff)
downloadatril-1c14dc96ca40048ecb290962005f6100074b59d8.tar.bz2
atril-1c14dc96ca40048ecb290962005f6100074b59d8.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 3b35aa26..b0f1c11f 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -497,6 +497,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);
}