summaryrefslogtreecommitdiff
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
commitcf640c0d122399633ab7c0652ca63af2f0f00672 (patch)
tree0bdd3912769bb75a104cf4c82c175d10c85cf23e
parentd1ffef1388e87c201a422beb459b623702d88b9a (diff)
downloadatril-cf640c0d122399633ab7c0652ca63af2f0f00672.tar.bz2
atril-cf640c0d122399633ab7c0652ca63af2f0f00672.tar.xz
previewer: Remove scroll accelerators
They are handled by the EvView now. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1649067
-rw-r--r--data/atril-previewer-ui.xml6
-rw-r--r--previewer/ev-previewer-window.c26
2 files changed, 0 insertions, 32 deletions
diff --git a/data/atril-previewer-ui.xml b/data/atril-previewer-ui.xml
index 0a291df3..37c989ad 100644
--- a/data/atril-previewer-ui.xml
+++ b/data/atril-previewer-ui.xml
@@ -14,14 +14,8 @@
</toolbar>
<accelerator name="FileCloseWindowAccel" action="FileCloseWindow"/>
- <accelerator name="SpaceAccel" action="Space"/>
- <accelerator name="ReturnAccel" action="Return"/>
- <accelerator name="BackSpaceAccel" action="BackSpace"/>
- <accelerator name="ShiftSpaceAccel" action="ShiftSpace"/>
- <accelerator name="ShiftBackSpaceAccel" action="ShiftBackSpace"/>
<accelerator name="pAccel" action="p"/>
<accelerator name="nAccel" action="n"/>
- <accelerator name="ShiftReturnAccel" action="ShiftReturn"/>
<accelerator name="FocusPageSelectorAccel" action="FocusPageSelector"/>
<accelerator name="PlusAccel" action="Plus"/>
<accelerator name="MinusAccel" action="Minus"/>
diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c
index 73885f9e..483ff08c 100644
--- a/previewer/ev-previewer-window.c
+++ b/previewer/ev-previewer-window.c
@@ -183,20 +183,6 @@ ev_previewer_window_focus_page_selector (GtkAction *action,
ev_page_action_grab_focus (EV_PAGE_ACTION (page_action));
}
-static void
-ev_previewer_window_scroll_forward (GtkAction *action,
- EvPreviewerWindow *window)
-{
- ev_view_scroll (window->view, GTK_SCROLL_PAGE_FORWARD, FALSE);
-}
-
-static void
-ev_previewer_window_scroll_backward (GtkAction *action,
- EvPreviewerWindow *window)
-{
- ev_view_scroll (window->view, GTK_SCROLL_PAGE_BACKWARD, FALSE);
-}
-
#if GTKUNIXPRINT_ENABLED
static void
ev_previewer_window_print_finished (GtkPrintJob *print_job,
@@ -314,18 +300,6 @@ static const GtkActionEntry action_entries[] = {
};
static const GtkActionEntry accel_entries[] = {
- { "Space", NULL, "", "space", NULL,
- G_CALLBACK (ev_previewer_window_scroll_forward) },
- { "ShiftSpace", NULL, "", "<shift>space", NULL,
- G_CALLBACK (ev_previewer_window_scroll_backward) },
- { "BackSpace", NULL, "", "BackSpace", NULL,
- G_CALLBACK (ev_previewer_window_scroll_backward) },
- { "ShiftBackSpace", NULL, "", "<shift>BackSpace", NULL,
- G_CALLBACK (ev_previewer_window_scroll_forward) },
- { "Return", NULL, "", "Return", NULL,
- G_CALLBACK (ev_previewer_window_scroll_forward) },
- { "ShiftReturn", NULL, "", "<shift>Return", NULL,
- G_CALLBACK (ev_previewer_window_scroll_backward) },
{ "p", GTK_STOCK_GO_UP, "", "p", NULL,
G_CALLBACK (ev_previewer_window_previous_page) },
{ "n", GTK_STOCK_GO_DOWN, "", "n", NULL,