[gimp] app: pick another GDK_KEY_foo key name commit from gtk3-port



commit ef905d4b9e6c9d98cfdc5441731c677025267f5a
Author: Michael Natterer <mitch gimp org>
Date:   Mon Oct 18 21:22:16 2010 +0200

    app: pick another GDK_KEY_foo key name commit from gtk3-port

 app/display/gimpdisplayshell-layer-select.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-layer-select.c b/app/display/gimpdisplayshell-layer-select.c
index a0c767e..638d013 100644
--- a/app/display/gimpdisplayshell-layer-select.c
+++ b/app/display/gimpdisplayshell-layer-select.c
@@ -255,10 +255,10 @@ layer_select_events (GtkWidget   *widget,
 
       switch (kevent->keyval)
         {
-        case GDK_Tab:
+        case GDK_KEY_Tab:
           layer_select_advance (layer_select, 1);
           break;
-        case GDK_ISO_Left_Tab:
+        case GDK_KEY_ISO_Left_Tab:
           layer_select_advance (layer_select, -1);
           break;
         }
@@ -270,13 +270,13 @@ layer_select_events (GtkWidget   *widget,
 
       switch (kevent->keyval)
         {
-        case GDK_Alt_L: case GDK_Alt_R:
+        case GDK_KEY_Alt_L: case GDK_KEY_Alt_R:
           kevent->state &= ~GDK_MOD1_MASK;
           break;
-        case GDK_Control_L: case GDK_Control_R:
+        case GDK_KEY_Control_L: case GDK_KEY_Control_R:
           kevent->state &= ~GDK_CONTROL_MASK;
           break;
-        case GDK_Shift_L: case GDK_Shift_R:
+        case GDK_KEY_Shift_L: case GDK_KEY_Shift_R:
           kevent->state &= ~GDK_SHIFT_MASK;
           break;
         }



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