diff options
author | monsta <[email protected]> | 2018-04-04 12:14:28 +0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-04-08 13:15:50 +0200 |
commit | b365c22e4a9e128b98e9d63552e83c2619a879ec (patch) | |
tree | b01fa80452b9ca89133e777becd9b12b9c3d3450 | |
parent | e710942aab8622df1735170188c17002217b4823 (diff) | |
download | atril-b365c22e4a9e128b98e9d63552e83c2619a879ec.tar.bz2 atril-b365c22e4a9e128b98e9d63552e83c2619a879ec.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.c | 1 |
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); } |