summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2013-07-12 12:14:50 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commitd1ffef1388e87c201a422beb459b623702d88b9a (patch)
tree3d6883e2c8b1b80059744715091e20f3b0c41e95 /shell/ev-window.c
parent0d7310f75da6d8a95bd8c212e8851d50eaa94c01 (diff)
downloadatril-d1ffef1388e87c201a422beb459b623702d88b9a.tar.bz2
atril-d1ffef1388e87c201a422beb459b623702d88b9a.tar.xz
ev-window: Remove scroll accelerators
They are handled by the EvView now. We just leave the page up/down accels, so that they still work even when the view is not focused. origin commit (modified): https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=6a7c3db
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 871c5a18..3d3a4d97 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -628,12 +628,6 @@ ev_window_set_view_accels_sensitivity (EvWindow *window, gboolean sensitive)
if (window->priv->action_group) {
ev_window_set_action_sensitive (window, "PageDown", sensitive);
ev_window_set_action_sensitive (window, "PageUp", sensitive);
- ev_window_set_action_sensitive (window, "Space", sensitive);
- ev_window_set_action_sensitive (window, "ShiftSpace", sensitive);
- ev_window_set_action_sensitive (window, "BackSpace", sensitive);
- ev_window_set_action_sensitive (window, "ShiftBackSpace", sensitive);
- ev_window_set_action_sensitive (window, "Return", sensitive);
- ev_window_set_action_sensitive (window, "ShiftReturn", sensitive);
ev_window_set_action_sensitive (window, "Plus", sensitive);
ev_window_set_action_sensitive (window, "Minus", sensitive);
ev_window_set_action_sensitive (window, "KpPlus", sensitive);
@@ -641,7 +635,6 @@ ev_window_set_view_accels_sensitivity (EvWindow *window, gboolean sensitive)
ev_window_set_action_sensitive (window, "Equal", sensitive);
ev_window_set_action_sensitive (window, "p", sensitive);
ev_window_set_action_sensitive (window, "n", sensitive);
-
ev_window_set_action_sensitive (window, "Slash", sensitive && can_find);
}
}
@@ -6276,18 +6269,6 @@ static const GtkActionEntry entries[] = {
G_CALLBACK (ev_window_cmd_scroll_forward) },
{ "PageUp", NULL, "", "Page_Up", NULL,
G_CALLBACK (ev_window_cmd_scroll_backward) },
- { "Space", NULL, "", "space", NULL,
- G_CALLBACK (ev_window_cmd_scroll_forward) },
- { "ShiftSpace", NULL, "", "<shift>space", NULL,
- G_CALLBACK (ev_window_cmd_scroll_backward) },
- { "BackSpace", NULL, "", "BackSpace", NULL,
- G_CALLBACK (ev_window_cmd_scroll_backward) },
- { "ShiftBackSpace", NULL, "", "<shift>BackSpace", NULL,
- G_CALLBACK (ev_window_cmd_scroll_forward) },
- { "Return", NULL, "", "Return", NULL,
- G_CALLBACK (ev_window_cmd_scroll_forward) },
- { "ShiftReturn", NULL, "", "<shift>Return", NULL,
- G_CALLBACK (ev_window_cmd_scroll_backward) },
{ "p", GTK_STOCK_GO_UP, "", "p", NULL,
G_CALLBACK (ev_window_cmd_go_previous_page) },
{ "n", GTK_STOCK_GO_DOWN, "", "n", NULL,