[gimp/gtk3-port: 127/237] app: port the cage tool to the new GDK_KEY_foo key names
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 127/237] app: port the cage tool to the new GDK_KEY_foo key names
- Date: Wed, 9 Feb 2011 10:57:14 +0000 (UTC)
commit 76653e102caeb4c49147551f3462088dcc2320fd
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]