summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2013-07-12 12:02:05 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commit69e48c6e36fdc46fdc31fd5dadefa584f36bd2cc (patch)
tree9c295e6271ea71b4c82aa4db1b3ce9e2dc741d65
parent5bf4d1e5294e2911884a5b5e030852b9d7298d49 (diff)
downloadatril-69e48c6e36fdc46fdc31fd5dadefa584f36bd2cc.tar.bz2
atril-69e48c6e36fdc46fdc31fd5dadefa584f36bd2cc.tar.xz
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
-rw-r--r--libview/ev-view.c20
1 files 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