[gimp/gtk3-port: 58/137] app: port to the new GDK_KEY_foo key names



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

    app: port to the new GDK_KEY_foo key names

 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]