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



commit b03cca86b794ac6beee64daaee595b13abb43309
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 4fbf343..bed3807 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -265,14 +265,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);
@@ -289,7 +289,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]