From 178c8c50a0ad42fd58496fc70ca17597f8c20754 Mon Sep 17 00:00:00 2001 From: Maxim Ermilov Date: Thu, 9 Sep 2010 18:25:30 +0400 Subject: [PATCH] Fix build with recent gtk3 use new keysyms names https://bugzilla.gnome.org/show_bug.cgi?id=629128 --- configure.ac | 2 +- src/st/st-im-text.c | 50 ++++++++++++++++++++++----------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/configure.ac b/configure.ac index d46260ac4..f3b1a45fb 100644 --- a/configure.ac +++ b/configure.ac @@ -61,7 +61,7 @@ CLUTTER_MIN_VERSION=1.2.8 GOBJECT_INTROSPECTION_MIN_VERSION=0.6.11 GJS_MIN_VERSION=0.7 MUTTER_MIN_VERSION=2.31.4 -GTK_MIN_VERSION=2.90.4 +GTK_MIN_VERSION=2.90.7 GIO_MIN_VERSION=2.25.9 # Collect more than 20 libraries for a prize! diff --git a/src/st/st-im-text.c b/src/st/st-im-text.c index 29fd71e4d..23657ae87 100644 --- a/src/st/st-im-text.c +++ b/src/st/st-im-text.c @@ -231,31 +231,31 @@ key_is_modifier (guint16 keyval) switch (keyval) { - case GDK_Shift_L: - case GDK_Shift_R: - case GDK_Control_L: - case GDK_Control_R: - case GDK_Caps_Lock: - case GDK_Shift_Lock: - case GDK_Meta_L: - case GDK_Meta_R: - case GDK_Alt_L: - case GDK_Alt_R: - case GDK_Super_L: - case GDK_Super_R: - case GDK_Hyper_L: - case GDK_Hyper_R: - case GDK_ISO_Lock: - case GDK_ISO_Level2_Latch: - case GDK_ISO_Level3_Shift: - case GDK_ISO_Level3_Latch: - case GDK_ISO_Level3_Lock: - case GDK_ISO_Level5_Shift: - case GDK_ISO_Level5_Latch: - case GDK_ISO_Level5_Lock: - case GDK_ISO_Group_Shift: - case GDK_ISO_Group_Latch: - case GDK_ISO_Group_Lock: + case GDK_KEY_Shift_L: + case GDK_KEY_Shift_R: + case GDK_KEY_Control_L: + case GDK_KEY_Control_R: + case GDK_KEY_Caps_Lock: + case GDK_KEY_Shift_Lock: + case GDK_KEY_Meta_L: + case GDK_KEY_Meta_R: + case GDK_KEY_Alt_L: + case GDK_KEY_Alt_R: + case GDK_KEY_Super_L: + case GDK_KEY_Super_R: + case GDK_KEY_Hyper_L: + case GDK_KEY_Hyper_R: + case GDK_KEY_ISO_Lock: + case GDK_KEY_ISO_Level2_Latch: + case GDK_KEY_ISO_Level3_Shift: + case GDK_KEY_ISO_Level3_Latch: + case GDK_KEY_ISO_Level3_Lock: + case GDK_KEY_ISO_Level5_Shift: + case GDK_KEY_ISO_Level5_Latch: + case GDK_KEY_ISO_Level5_Lock: + case GDK_KEY_ISO_Group_Shift: + case GDK_KEY_ISO_Group_Latch: + case GDK_KEY_ISO_Group_Lock: return TRUE; default: return FALSE;