From 35f330c0d21abe335ce242bfbbbcd7a8efb9108b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 15 Aug 2010 13:53:58 +0200 Subject: Fix #ifdef for GDK_SUPER_MASK. (Stephan Schulz) --- src/gui_gtk_x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 ))) -- cgit v1.2.3