From b365c22e4a9e128b98e9d63552e83c2619a879ec Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 4 Apr 2018 12:14:28 +0300 Subject: disable StartPresentation action in fullscreen if document has no pages this also disables it when no document is loaded --- shell/ev-window.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shell') 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); } -- cgit v1.2.1