Fix #ifdef for GDK_SUPER_MASK. (Stephan Schulz)

This commit is contained in:
Bram Moolenaar
2010-08-15 13:53:58 +02:00
parent db84e4599c
commit 35f330c0d2

View File

@ -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
)))