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



commit 51c7eea4719134d48ecce6c5dffe05fd1c308bf8
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 ff3fd96..9013841 100644
--- a/libgimpwidgets/gimphelpui.c
+++ b/libgimpwidgets/gimphelpui.c
@@ -176,11 +176,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);
@@ -530,7 +530,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]