From 69e48c6e36fdc46fdc31fd5dadefa584f36bd2cc Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 12 Jul 2013 12:02:05 +0200 Subject: libview: Fix second parameter type of scroll signal for h, j, k and l bindings We were still using G_TYPE_BOOLEAN instead of GTK_TYPE_ORIENTATION. It worked because both are integers in the end. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=f9a65d4 --- libview/ev-view.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/libview/ev-view.c b/libview/ev-view.c index 60afb088..5d4c7e77 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -6332,14 +6332,18 @@ ev_view_class_init (EvViewClass *class) add_scroll_binding_keypad (binding_set, GDK_KEY_Down, 0, GTK_SCROLL_STEP_FORWARD, GTK_ORIENTATION_VERTICAL); add_scroll_binding_keypad (binding_set, GDK_KEY_Up, GDK_MOD1_MASK, GTK_SCROLL_STEP_DOWN, GTK_ORIENTATION_VERTICAL); add_scroll_binding_keypad (binding_set, GDK_KEY_Down, GDK_MOD1_MASK, GTK_SCROLL_STEP_UP, GTK_ORIENTATION_VERTICAL); - gtk_binding_entry_add_signal (binding_set, GDK_KEY_H, 0, "scroll", 2, GTK_TYPE_SCROLL_TYPE, - GTK_SCROLL_STEP_BACKWARD, G_TYPE_BOOLEAN, GTK_ORIENTATION_HORIZONTAL); - gtk_binding_entry_add_signal (binding_set, GDK_KEY_J, 0, "scroll", 2, GTK_TYPE_SCROLL_TYPE, - GTK_SCROLL_STEP_FORWARD, G_TYPE_BOOLEAN, GTK_ORIENTATION_VERTICAL); - gtk_binding_entry_add_signal (binding_set, GDK_KEY_K, 0, "scroll", 2, GTK_TYPE_SCROLL_TYPE, - GTK_SCROLL_STEP_BACKWARD, G_TYPE_BOOLEAN, GTK_ORIENTATION_VERTICAL); - gtk_binding_entry_add_signal (binding_set, GDK_KEY_L, 0, "scroll", 2, GTK_TYPE_SCROLL_TYPE, - GTK_SCROLL_STEP_FORWARD, G_TYPE_BOOLEAN, GTK_ORIENTATION_HORIZONTAL); + gtk_binding_entry_add_signal (binding_set, GDK_KEY_H, 0, "scroll", 2, + GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_BACKWARD, + GTK_TYPE_ORIENTATION, GTK_ORIENTATION_HORIZONTAL); + gtk_binding_entry_add_signal (binding_set, GDK_KEY_J, 0, "scroll", 2, + GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_FORWARD, + GTK_TYPE_ORIENTATION, GTK_ORIENTATION_VERTICAL); + gtk_binding_entry_add_signal (binding_set, GDK_KEY_K, 0, "scroll", 2, + GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_BACKWARD, + GTK_TYPE_ORIENTATION, GTK_ORIENTATION_VERTICAL); + gtk_binding_entry_add_signal (binding_set, GDK_KEY_L, 0, "scroll", 2, + GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_FORWARD, + GTK_TYPE_ORIENTATION, GTK_ORIENTATION_HORIZONTAL); } static void -- cgit v1.2.1