#ifndef __GTK_COMPAT_H__
#define __GTK_COMPAT_H__

#include <gtk/gtk.h>

/* Provide a compatibility layer for accessor functions introduced
 * in GTK+ 2.22 which we need to build with sealed GDK.
 * That way it is still possible to build with GTK+ 2.20.
 */

#if !GTK_CHECK_VERSION(2, 21, 0)

#define gdk_drag_context_get_actions(context)          (context)->actions
#define gdk_drag_context_get_suggested_action(context) (context)->suggested_action
#define gdk_drag_context_get_selected_action(context)  (context)->action

#endif /* GTK_CHECK_VERSION(2, 21, 0) */

#endif /* __GTK_COMPAT_H__ */

#ifndef __GTK_COMPAT_H__
#define __GTK_COMPAT_H__

#include <gtk/gtk.h>

/* Provide a compatibility layer for accessor functions introduced
 * in GTK+ 2.22 which we need to build with sealed GDK.
 * That way it is still possible to build with GTK+ 2.20.
 */

#if !GTK_CHECK_VERSION(2,21,2)

#define gdk_drag_context_get_actions(context)          (context)->actions
#define gdk_drag_context_get_suggested_action(context) (context)->suggested_action
#define gdk_drag_context_get_selected_action(context)  (context)->action

#endif /* GTK_CHECK_VERSION(2, 21, 0) */

#endif /* __GTK_COMPAT_H__ */

Set the GTK+ backward compatibility check to 2.21.2.
Set the GTK+ backward compatibility check to 2.21.2.
