summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-15 13:53:58 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-15 13:53:58 +0200
commit35f330c0d21abe335ce242bfbbbcd7a8efb9108b (patch)
tree76e5d06045d204de73a101b603954e741f843617 /src
parentdb84e4599cec635d6255c7beaf2cc9306681f099 (diff)
downloadvim-35f330c0d21abe335ce242bfbbbcd7a8efb9108b.zip
Fix #ifdef for GDK_SUPER_MASK. (Stephan Schulz)
Diffstat (limited to 'src')
-rw-r--r--src/gui_gtk_x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index e58ed73d8..f148ff7ee 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -1011,7 +1011,7 @@ key_press_event(GtkWidget *widget UNUSED,
* byte. */
if (len == 1
&& ((state & GDK_MOD1_MASK)
-#ifdef GDK_SUPER_MASK
+#if GTK_CHECK_VERSION(2,10,0)
|| (state & GDK_SUPER_MASK)
#endif
)
@@ -1065,7 +1065,7 @@ key_press_event(GtkWidget *widget UNUSED,
|| key_sym == GDK_Escape || key_sym == GDK_KP_Tab
|| key_sym == GDK_ISO_Enter || key_sym == GDK_3270_Enter
|| (enc_dbcs && len == 1 && ((state & GDK_MOD1_MASK)
-#ifdef GDK_SUPER_MASK
+#if GTK_CHECK_VERSION(2,10,0)
|| (state & GDK_SUPER_MASK)
#endif
)))