From 970662db34ff0a718cd5e39c1fa268beb51e1f64 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 4 Jun 2010 07:05:46 -0400 Subject: More GTK3 preparation. This uses the new gtk_assistant_commit() I had added to GTK+ for our EImportAssistant progress page. --- e-util/gtk-compat.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 e-util/gtk-compat.h (limited to 'e-util/gtk-compat.h') diff --git a/e-util/gtk-compat.h b/e-util/gtk-compat.h new file mode 100644 index 0000000000..75b32977a1 --- /dev/null +++ b/e-util/gtk-compat.h @@ -0,0 +1,21 @@ +#ifndef __GTK_COMPAT_H__ +#define __GTK_COMPAT_H__ + +#include + +/* 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 +#define gdk_drag_context_list_targets(context) (context)->targets + +#define gtk_accessible_get_widget(accessible) \ + (GTK_ACCESSIBLE (accessible)->widget) +#endif + +#endif /* __GTK_COMPAT_H__ */ -- cgit v1.2.3