[gtk+] textview: fix duplicated binding entries. use kp variants instead.



commit 21360a453c0b0c124b95de4a500c120432f214ca
Author: Christian Hergert <christian hergert me>
Date:   Wed Dec 31 23:27:55 2014 -0800

    textview: fix duplicated binding entries. use kp variants instead.
    
    This appears to have accidentally used the normal keypresses twice instead
    of the KP variants. This resulted in shift+insert pasting twice.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742170

 gtk/gtktextview.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 117e561..96dca1d 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -1492,11 +1492,11 @@ G_GNUC_END_IGNORE_DEPRECATIONS
   gtk_binding_entry_add_signal (binding_set, GDK_KEY_v, GDK_CONTROL_MASK,
                                "paste-clipboard", 0);
 
-  gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, GDK_SHIFT_MASK,
+  gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Delete, GDK_SHIFT_MASK,
                                "cut-clipboard", 0);
-  gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_CONTROL_MASK,
+  gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Insert, GDK_CONTROL_MASK,
                                "copy-clipboard", 0);
-  gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_SHIFT_MASK,
+  gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Insert, GDK_SHIFT_MASK,
                                "paste-clipboard", 0);
 
   gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, GDK_SHIFT_MASK,


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