[gimp/gtk3-port: 125/251] 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: 125/251] app: port the cage tool to the new GDK_KEY_foo key names
- Date: Mon, 28 Mar 2011 19:33:15 +0000 (UTC)
commit 857da42c7e40cebcbd4b64af8b81c0eb43f8afd0
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 31213b7..c66170f 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -381,14 +381,14 @@ gimp_cage_tool_key_press (GimpTool *tool,
switch (kevent->keyval)
{
- case GDK_BackSpace:
+ case GDK_KEY_BackSpace:
if (! ct->cage_complete && ct->tool_state == CAGE_STATE_WAIT)
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->tool_state == DEFORM_STATE_WAIT)
{
gimp_tool_control_set_preserve (tool->control, TRUE);
@@ -405,7 +405,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]