[evince] Use "n" and "p" keys for page jump



commit f97478427273656d4cac310c4846ba69ed985443
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Nov 15 12:30:12 2009 +0100

    Use "n" and "p" keys for page jump
    
    Fixes bgo#601217.

 data/evince-ui.xml |    2 ++
 shell/ev-window.c  |    4 ++++
 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]