From: Cosimo Cecchi Date: Fri, 27 Jul 2007 05:48:00 +0000 (+0000) Subject: Unix-like hjkl bindings added. See bug #458111. X-Git-Tag: EVINCE_0_9_3~18 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=784128af02ea485639dd23220b1a3f5670c30fdd;p=evince.git Unix-like hjkl bindings added. See bug #458111. 2007-07-27 Cosimo Cecchi * shell/ev-view.c: (ev_view_class_init): Unix-like hjkl bindings added. See bug #458111. svn path=/trunk/; revision=2583 --- diff --git a/ChangeLog b/ChangeLog index 9bdb3df7..80b3494b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-07-27 Cosimo Cecchi + + * shell/ev-view.c: (ev_view_class_init): + + Unix-like hjkl bindings added. See bug #458111. + 2007-07-27 Johannes Buchner * shell/ev-utils.c: (get_num_monitors), (get_screen_dpi): diff --git a/shell/ev-view.c b/shell/ev-view.c index 6182fec2..c8b17834 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -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