[gimp/gtk3-port: 128/130] app: port the cage tool to the new GDK_KEY_foo key names



commit 804705fe7403a1c42e106e166e30443bb35bccd7
Author: Michael Natterer <mitch gimp org>
Date:   Thu Nov 4 22:54:14 2010 +0100

    app: port the cage tool to the new GDK_KEY_foo key names

 app/tools/gimpcagetool.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 4b5c5cd..9218b41 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -260,14 +260,14 @@ gimp_cage_tool_key_press (GimpTool    *tool,
 
   switch (kevent->keyval)
     {
-    case GDK_BackSpace:
+    case GDK_KEY_BackSpace:
       if (! ct->cage_complete)
         gimp_cage_tool_remove_last_handle (ct);
       return TRUE;
 
-    case GDK_Return:
-    case GDK_KP_Enter:
-    case GDK_ISO_Enter:
+    case GDK_KEY_Return:
+    case GDK_KEY_KP_Enter:
+    case GDK_KEY_ISO_Enter:
       if (ct->cage_complete)
         {
           gimp_tool_control_set_preserve (tool->control, TRUE);
@@ -284,7 +284,7 @@ gimp_cage_tool_key_press (GimpTool    *tool,
         }
       return TRUE;
 
-    case GDK_Escape:
+    case GDK_KEY_Escape:
       gimp_cage_tool_halt (ct);
       return TRUE;
 



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