[gimp/gtk3-port: 50/246] app: use the new GDK_KEY_foo key names



commit 21e509b99f4d30d404f7a147ad96161477cce26c
Author: Michael Natterer <mitch gimp org>
Date:   Fri Oct 15 15:39:04 2010 +0200

    app: use the new GDK_KEY_foo key names

 app/widgets/gimptextproxy.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/app/widgets/gimptextproxy.c b/app/widgets/gimptextproxy.c
index 6f0f2b7..d46d52e 100644
--- a/app/widgets/gimptextproxy.c
+++ b/app/widgets/gimptextproxy.c
@@ -105,24 +105,24 @@ gimp_text_proxy_class_init (GimpTextProxyClass *klass)
 
   binding_set = gtk_binding_set_by_class (klass);
 
-  gtk_binding_entry_add_signal (binding_set, GDK_plus, GDK_MOD1_MASK,
+  gtk_binding_entry_add_signal (binding_set, GDK_KEY_plus, GDK_MOD1_MASK,
 				"change-size", 1,
                                 G_TYPE_DOUBLE, 1.0);
-  gtk_binding_entry_add_signal (binding_set, GDK_minus, GDK_MOD1_MASK,
+  gtk_binding_entry_add_signal (binding_set, GDK_KEY_minus, GDK_MOD1_MASK,
 				"change-size", 1,
                                 G_TYPE_DOUBLE, -1.0);
 
-  gtk_binding_entry_add_signal (binding_set, GDK_Up, GDK_MOD1_MASK,
+  gtk_binding_entry_add_signal (binding_set, GDK_KEY_Up, GDK_MOD1_MASK,
 				"change-baseline", 1,
                                 G_TYPE_DOUBLE, 1.0);
-  gtk_binding_entry_add_signal (binding_set, GDK_Down, GDK_MOD1_MASK,
+  gtk_binding_entry_add_signal (binding_set, GDK_KEY_Down, GDK_MOD1_MASK,
 				"change-baseline", 1,
                                 G_TYPE_DOUBLE, -1.0);
 
-  gtk_binding_entry_add_signal (binding_set, GDK_Left, GDK_MOD1_MASK,
+  gtk_binding_entry_add_signal (binding_set, GDK_KEY_Left, GDK_MOD1_MASK,
 				"change-kerning", 1,
                                 G_TYPE_DOUBLE, -1.0);
-  gtk_binding_entry_add_signal (binding_set, GDK_Right, GDK_MOD1_MASK,
+  gtk_binding_entry_add_signal (binding_set, GDK_KEY_Right, GDK_MOD1_MASK,
 				"change-kerning", 1,
                                 G_TYPE_DOUBLE, 1.0);
 }



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