diff options
author | raveit65 <[email protected]> | 2017-11-24 10:26:58 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-11-27 10:13:51 +0100 |
commit | d691bf7c0176fbd9215dc204d381fb0579935cb1 (patch) | |
tree | 0e2702ba0b8efa829832aa2641b295c3097a8434 /shell | |
parent | 1d2c7053a82134004a8c27bc709453d9ee13f0ba (diff) | |
download | atril-d691bf7c0176fbd9215dc204d381fb0579935cb1.tar.bz2 atril-d691bf7c0176fbd9215dc204d381fb0579935cb1.tar.xz |
shell: show caret navigation in menu
but set this action sensitive for epubs
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 21b67cee..a1675fcf 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -615,6 +615,10 @@ ev_window_update_actions (EvWindow *ev_window) has_pages && !presentation_mode && !EV_WEB_VIEW(ev_window->priv->webview)); + ev_window_set_action_sensitive (ev_window, "ViewCaretNavigation", + has_pages && + !presentation_mode && + !EV_WEB_VIEW(ev_window->priv->webview)); } #endif @@ -6438,6 +6442,9 @@ static const GtkToggleActionEntry toggle_entries[] = { { "ViewInvertedColors", EV_STOCK_INVERTED_COLORS, N_("_Inverted Colors"), "<control>I", N_("Show page contents with the colors inverted"), G_CALLBACK (ev_window_cmd_view_inverted_colors) }, + { "ViewCaretNavigation", GTK_STOCK_INDEX, N_("Caret _Navigation"), "F7", + N_("Activate or disable caret-navigation"), + G_CALLBACK (ev_window_cmd_view_toggle_caret_navigation) }, }; |