[evince] libview: Fix Return key bidings



commit 15da80b35137fb7dfb052342928875ddb2b70067
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Jul 14 13:11:07 2013 +0200

    libview: Fix Return key bidings
    
    Do not use the helper function for keypad keys since Return doesn't have
    a key un the keypad.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704154

 libview/ev-view.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index ae4b225..60ae6c4 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -6225,8 +6225,12 @@ ev_view_class_init (EvViewClass *class)
         add_scroll_binding_keypad (binding_set, GDK_KEY_Down,  GDK_MOD1_MASK, GTK_SCROLL_STEP_UP, 
GTK_ORIENTATION_VERTICAL);
        add_scroll_binding_keypad (binding_set, GDK_KEY_Page_Up, 0, GTK_SCROLL_PAGE_BACKWARD, 
GTK_ORIENTATION_VERTICAL);
        add_scroll_binding_keypad (binding_set, GDK_KEY_Page_Down, 0, GTK_SCROLL_PAGE_FORWARD, 
GTK_ORIENTATION_VERTICAL);
-       add_scroll_binding_keypad (binding_set, GDK_KEY_Return, 0, GTK_SCROLL_PAGE_FORWARD, 
GTK_ORIENTATION_VERTICAL);
-       add_scroll_binding_keypad (binding_set, GDK_KEY_Return, GDK_SHIFT_MASK, GTK_SCROLL_PAGE_BACKWARD, 
GTK_ORIENTATION_VERTICAL);
+       gtk_binding_entry_add_signal (binding_set, GDK_KEY_Return, 0, "scroll", 2,
+                                     GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_FORWARD,
+                                     GTK_TYPE_ORIENTATION, GTK_ORIENTATION_VERTICAL);
+       gtk_binding_entry_add_signal (binding_set, GDK_KEY_Return, GDK_SHIFT_MASK, "scroll", 2,
+                                     GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_BACKWARD,
+                                     GTK_TYPE_ORIENTATION, GTK_ORIENTATION_VERTICAL);
         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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]