[gimp/gtk3-port: 34/246] app: port 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: 34/246] app: port to the new GDK_KEY_foo key names
- Date: Sun, 27 Feb 2011 15:47:35 +0000 (UTC)
commit 33df7f4952c46e0abe319238f3beca7c5e61b4d6
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 15 13:26:04 2010 +0200
app: port to the new GDK_KEY_foo key names
app/widgets/gimpcontrollerkeyboard.c | 64 +++++++++++++++++-----------------
1 files changed, 32 insertions(+), 32 deletions(-)
---
diff --git a/app/widgets/gimpcontrollerkeyboard.c b/app/widgets/gimpcontrollerkeyboard.c
index 450cbdd..596092d 100644
--- a/app/widgets/gimpcontrollerkeyboard.c
+++ b/app/widgets/gimpcontrollerkeyboard.c
@@ -62,103 +62,103 @@ G_DEFINE_TYPE (GimpControllerKeyboard, gimp_controller_keyboard,
static KeyboardEvent keyboard_events[] =
{
- { GDK_Up, GDK_MOD1_MASK | GDK_CONTROL_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Up, GDK_MOD1_MASK | GDK_CONTROL_MASK | GDK_SHIFT_MASK,
"cursor-up-shift-control-alt",
N_("Cursor Up") },
- { GDK_Up, GDK_MOD1_MASK | GDK_CONTROL_MASK,
+ { GDK_KEY_Up, GDK_MOD1_MASK | GDK_CONTROL_MASK,
"cursor-up-control-alt",
N_("Cursor Up") },
- { GDK_Up, GDK_MOD1_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Up, GDK_MOD1_MASK | GDK_SHIFT_MASK,
"cursor-up-shift-alt",
N_("Cursor Up") },
- { GDK_Up, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Up, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
"cursor-up-shift-control",
N_("Cursor Up") },
- { GDK_Up, GDK_MOD1_MASK,
+ { GDK_KEY_Up, GDK_MOD1_MASK,
"cursor-up-alt",
N_("Cursor Up") },
- { GDK_Up, GDK_CONTROL_MASK,
+ { GDK_KEY_Up, GDK_CONTROL_MASK,
"cursor-up-control",
N_("Cursor Up") },
- { GDK_Up, GDK_SHIFT_MASK,
+ { GDK_KEY_Up, GDK_SHIFT_MASK,
"cursor-up-shift",
N_("Cursor Up") },
- { GDK_Up, 0,
+ { GDK_KEY_Up, 0,
"cursor-up",
N_("Cursor Up") },
- { GDK_Down, GDK_MOD1_MASK | GDK_CONTROL_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Down, GDK_MOD1_MASK | GDK_CONTROL_MASK | GDK_SHIFT_MASK,
"cursor-down-shift-control-alt",
N_("Cursor Down") },
- { GDK_Down, GDK_MOD1_MASK | GDK_CONTROL_MASK,
+ { GDK_KEY_Down, GDK_MOD1_MASK | GDK_CONTROL_MASK,
"cursor-down-control-alt",
N_("Cursor Down") },
- { GDK_Down, GDK_MOD1_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Down, GDK_MOD1_MASK | GDK_SHIFT_MASK,
"cursor-down-shift-alt",
N_("Cursor Down") },
- { GDK_Down, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Down, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
"cursor-down-shift-control",
N_("Cursor Down") },
- { GDK_Down, GDK_MOD1_MASK,
+ { GDK_KEY_Down, GDK_MOD1_MASK,
"cursor-down-alt",
N_("Cursor Down") },
- { GDK_Down, GDK_CONTROL_MASK,
+ { GDK_KEY_Down, GDK_CONTROL_MASK,
"cursor-down-control",
N_("Cursor Down") },
- { GDK_Down, GDK_SHIFT_MASK,
+ { GDK_KEY_Down, GDK_SHIFT_MASK,
"cursor-down-shift",
N_("Cursor Down") },
- { GDK_Down, 0,
+ { GDK_KEY_Down, 0,
"cursor-down",
N_("Cursor Down") },
- { GDK_Left, GDK_MOD1_MASK | GDK_CONTROL_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Left, GDK_MOD1_MASK | GDK_CONTROL_MASK | GDK_SHIFT_MASK,
"cursor-left-shift-control-alt",
N_("Cursor Left") },
- { GDK_Left, GDK_MOD1_MASK | GDK_CONTROL_MASK,
+ { GDK_KEY_Left, GDK_MOD1_MASK | GDK_CONTROL_MASK,
"cursor-left-control-alt",
N_("Cursor Left") },
- { GDK_Left, GDK_MOD1_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Left, GDK_MOD1_MASK | GDK_SHIFT_MASK,
"cursor-left-shift-alt",
N_("Cursor Left") },
- { GDK_Left, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Left, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
"cursor-left-shift-control",
N_("Cursor Left") },
- { GDK_Left, GDK_MOD1_MASK,
+ { GDK_KEY_Left, GDK_MOD1_MASK,
"cursor-left-alt",
N_("Cursor Left") },
- { GDK_Left, GDK_CONTROL_MASK,
+ { GDK_KEY_Left, GDK_CONTROL_MASK,
"cursor-left-control",
N_("Cursor Left") },
- { GDK_Left, GDK_SHIFT_MASK,
+ { GDK_KEY_Left, GDK_SHIFT_MASK,
"cursor-left-shift",
N_("Cursor Left") },
- { GDK_Left, 0,
+ { GDK_KEY_Left, 0,
"cursor-left",
N_("Cursor Left") },
- { GDK_Right, GDK_MOD1_MASK | GDK_CONTROL_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Right, GDK_MOD1_MASK | GDK_CONTROL_MASK | GDK_SHIFT_MASK,
"cursor-right-shift-control-alt",
N_("Cursor Right") },
- { GDK_Right, GDK_MOD1_MASK | GDK_CONTROL_MASK,
+ { GDK_KEY_Right, GDK_MOD1_MASK | GDK_CONTROL_MASK,
"cursor-right-control-alt",
N_("Cursor Right") },
- { GDK_Right, GDK_MOD1_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Right, GDK_MOD1_MASK | GDK_SHIFT_MASK,
"cursor-right-shift-alt",
N_("Cursor Right") },
- { GDK_Right, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
+ { GDK_KEY_Right, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
"cursor-right-shift-control",
N_("Cursor Right") },
- { GDK_Right, GDK_MOD1_MASK,
+ { GDK_KEY_Right, GDK_MOD1_MASK,
"cursor-right-alt",
N_("Cursor Right") },
- { GDK_Right, GDK_CONTROL_MASK,
+ { GDK_KEY_Right, GDK_CONTROL_MASK,
"cursor-right-control",
N_("Cursor Right") },
- { GDK_Right, GDK_SHIFT_MASK,
+ { GDK_KEY_Right, GDK_SHIFT_MASK,
"cursor-right-shift",
N_("Cursor Right") },
- { GDK_Right, 0,
+ { GDK_KEY_Right, 0,
"cursor-right",
N_("Cursor Right") }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]