[gedit/wip/tabs] Also bind the keypad's number keys for changing the tab



commit 4fa8e422b3f525e0f917ac28724b3c6316a7927e
Author: Garrett Regier <garrett yorba org>
Date:   Fri Jul 12 11:14:04 2013 -0700

    Also bind the keypad's number keys for changing the tab

 gedit/gedit-notebook.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c
index a3fc8e9..3b9612b 100644
--- a/gedit/gedit-notebook.c
+++ b/gedit/gedit-notebook.c
@@ -589,6 +589,10 @@ gedit_notebook_class_init (GeditNotebookClass *klass)
                                              GDK_KEY_0 + i, GDK_MOD1_MASK,
                                              "change-to-page", 1,
                                              G_TYPE_INT, i - 1);
+               gtk_binding_entry_add_signal (binding_set,
+                                             GDK_KEY_KP_0 + i, GDK_MOD1_MASK,
+                                             "change-to-page", 1,
+                                             G_TYPE_INT, i - 1);
        }
 
        /* Bind class to template */


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