Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-11-15 11:30:12 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-11-15 11:30:12 (GMT)
commitf97478427273656d4cac310c4846ba69ed985443 (patch)
tree2df695549e22308657ea0c567f251b2780a015ea
parent2242d8db97b5ce5694acadfa33848fd321e28936 (diff)
Use "n" and "p" keys for page jump
Fixes bgo#601217.
-rw-r--r--data/evince-ui.xml2
-rw-r--r--shell/ev-window.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/data/evince-ui.xml b/data/evince-ui.xml
index 7ac4edb..bd5e947 100644
--- a/data/evince-ui.xml
+++ b/data/evince-ui.xml
@@ -101,6 +101,8 @@
<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"/>
diff --git a/shell/ev-window.c b/shell/ev-window.c
index dec5ddb..02a3087 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -5104,6 +5104,10 @@ static const GtkActionEntry entries[] = {
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,
+ G_CALLBACK (ev_window_cmd_go_next_page) },
{ "Plus", GTK_STOCK_ZOOM_IN, NULL, "plus", NULL,
G_CALLBACK (ev_window_cmd_view_zoom_in) },
{ "CtrlEqual", GTK_STOCK_ZOOM_IN, NULL, "<control>equal", NULL,