]> www.fi.muni.cz Git - evince.git/commitdiff
Unix-like hjkl bindings added. See bug #458111.
authorCosimo Cecchi <anarki@lilik.it>
Fri, 27 Jul 2007 05:48:00 +0000 (05:48 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Fri, 27 Jul 2007 05:48:00 +0000 (05:48 +0000)
2007-07-27  Cosimo Cecchi   <anarki@lilik.it>

* shell/ev-view.c: (ev_view_class_init):

Unix-like hjkl bindings added. See bug #458111.

svn path=/trunk/; revision=2583

ChangeLog
shell/ev-view.c

index 9bdb3df7e0c8956f047d398a39b60e295db2ad47..80b3494b5b9499ef28f06e0098f25a402b37b357 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-27  Cosimo Cecchi   <anarki@lilik.it>
+
+       * shell/ev-view.c: (ev_view_class_init):
+       
+       Unix-like hjkl bindings added. See bug #458111.
+
 2007-07-27  Johannes Buchner  <buchner.johannes@gmx.at>
 
        * shell/ev-utils.c: (get_num_monitors), (get_screen_dpi):
index 6182fec2858893abd25f1d40fc9edc0cff4b0863..c8b17834adc2689d4ea89284d78e948e84b5ba66 100644 (file)
@@ -3900,6 +3900,15 @@ ev_view_class_init (EvViewClass *class)
        add_scroll_binding_keypad (binding_set, GDK_Down,  0, EV_SCROLL_STEP_FORWARD,  FALSE);
        add_scroll_binding_keypad (binding_set, GDK_Up,    GDK_MOD1_MASK, EV_SCROLL_STEP_DOWN, FALSE);
        add_scroll_binding_keypad (binding_set, GDK_Down,  GDK_MOD1_MASK, EV_SCROLL_STEP_UP,  FALSE);
+       gtk_binding_entry_add_signal (binding_set, GDK_H, 0, "binding_activated", 2, EV_TYPE_SCROLL_TYPE,
+                                     EV_SCROLL_STEP_BACKWARD, G_TYPE_BOOLEAN, TRUE);
+       gtk_binding_entry_add_signal (binding_set, GDK_J, 0, "binding_activated", 2, EV_TYPE_SCROLL_TYPE,
+                                     EV_SCROLL_STEP_FORWARD, G_TYPE_BOOLEAN, FALSE);
+       gtk_binding_entry_add_signal (binding_set, GDK_K, 0, "binding_activated", 2, EV_TYPE_SCROLL_TYPE,
+                                     EV_SCROLL_STEP_BACKWARD, G_TYPE_BOOLEAN, FALSE);
+       gtk_binding_entry_add_signal (binding_set, GDK_L, 0, "binding_activated", 2, EV_TYPE_SCROLL_TYPE,
+                                     EV_SCROLL_STEP_FORWARD, G_TYPE_BOOLEAN, TRUE);
+       
 }
 
 static void