]> www.fi.muni.cz Git - evince.git/commitdiff
Enter as shortcut key for next page. Fix for the bug #321394.
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 27 Nov 2005 18:21:06 +0000 (18:21 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 27 Nov 2005 18:21:06 +0000 (18:21 +0000)
* data/evince-ui.xml:
* shell/ev-window.c: (ev_window_set_view_accels_sensitivity):

Enter as shortcut key for next page. Fix for the bug
#321394.

ChangeLog
data/evince-ui.xml
shell/ev-window.c

index 7a075b3d8d7e919d884822de4134a3eae9bc9042..1ce63a046240bf61d3b4b8d1e17bf24d988335b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-11-27  Jaap A. Haitsma <jaap@haitsma.org>
+
+       * data/evince-ui.xml:
+       * shell/ev-window.c: (ev_window_set_view_accels_sensitivity):
+       
+       Enter as shortcut key for next page. Fix for the bug
+       #321394.
+
 2005-11-18  Ales Nyakhaychyk  <nab@mail.by>
 
        * configure.ac: Added "be" (Belarusian) to ALL_LINGUAS.
index e280cbbe9a9677c37f7566cda92cf1f616506c39..122bf262b7e805f4a2d7a8b42d7d599c6f0c7549 100644 (file)
   <accelerator name="EscapeAccel" action="Escape"/>
   <accelerator name="SlashAccel" action="Slash"/>
   <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="ShiftReturnAccel" action="ShiftReturn"/>
   <accelerator name="FocusPageSelectorAccel" action="FocusPageSelector"/>
   <accelerator name="PlusAccel" action="Plus"/>
   <accelerator name="MinusAccel" action="Minus"/>
index 8a364e25107302a07ab0740797e829dca4158bb0..974936f76344ef2d6b13424cd1d61a62adf4d3ac 100644 (file)
@@ -2925,6 +2925,10 @@ static const GtkActionEntry entries[] = {
           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) },
         { "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,
@@ -3140,6 +3144,8 @@ ev_window_set_view_accels_sensitivity (EvWindow *window, gboolean sensitive)
                set_action_sensitive (window, "ShiftSpace", sensitive);
                set_action_sensitive (window, "BackSpace", sensitive);
                set_action_sensitive (window, "ShiftBackSpace", sensitive);
+               set_action_sensitive (window, "Return", sensitive);
+               set_action_sensitive (window, "ShiftReturn", sensitive);
                set_action_sensitive (window, "Slash", sensitive);
                set_action_sensitive (window, "Plus", sensitive);
                set_action_sensitive (window, "Minus", sensitive);