[gimp/gtk3-port: 12/249] libgimpwidgets: port to GDK_KEY_foo key names



commit e5251e5b57917f661c8033408cf6a26bb4e66589
Author: Michael Natterer <mitch gimp org>
Date:   Fri Oct 15 11:16:32 2010 +0200

    libgimpwidgets: port to GDK_KEY_foo key names

 libgimpwidgets/gimphelpui.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgimpwidgets/gimphelpui.c b/libgimpwidgets/gimphelpui.c
index 999648f..4e6217e 100644
--- a/libgimpwidgets/gimphelpui.c
+++ b/libgimpwidgets/gimphelpui.c
@@ -178,11 +178,11 @@ gimp_help_connect (GtkWidget    *widget,
       binding_set =
         gtk_binding_set_by_class (g_type_class_peek (GTK_TYPE_WIDGET));
 
-      gtk_binding_entry_add_signal (binding_set, GDK_F1, 0,
+      gtk_binding_entry_add_signal (binding_set, GDK_KEY_F1, 0,
                                     "show-help", 1,
                                     GTK_TYPE_WIDGET_HELP_TYPE,
                                     GIMP_WIDGET_HELP_TYPE_HELP);
-      gtk_binding_entry_add_signal (binding_set, GDK_KP_F1, 0,
+      gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_F1, 0,
                                     "show-help", 1,
                                     GTK_TYPE_WIDGET_HELP_TYPE,
                                     GIMP_WIDGET_HELP_TYPE_HELP);
@@ -532,7 +532,7 @@ gimp_context_help_key_press (GtkWidget   *widget,
                              GdkEventKey *kevent,
                              gpointer     data)
 {
-  if (kevent->keyval == GDK_Escape)
+  if (kevent->keyval == GDK_KEY_Escape)
     {
       GdkDisplay *display = gtk_widget_get_display (widget);
 



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