From 1c3fc1cd0c95a7d8a4adc4e3451ff1ded5d12cbe Mon Sep 17 00:00:00 2001 From: Anatoly Spektor Date: Tue, 18 Sep 2012 11:09:15 -0400 Subject: define GTK_WIDGET_FLAGS to avoid compilation error against GTK+ 3 --- bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h index 08633b994f..c1d1a65035 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h @@ -388,6 +388,9 @@ #define g_object_ref_sink_LIB LIB_GOBJECT /* Field accessors */ +#if GTK_CHECK_VERSION(3,0,0) +#define GTK_WIDGET_FLAGS(arg0) 0 +#endif #define G_OBJECT_CLASS_CONSTRUCTOR(arg0) (arg0)->constructor #define G_OBJECT_CLASS_SET_CONSTRUCTOR(arg0, arg1) (arg0)->constructor = (GObject* (*) (GType, guint, GObjectConstructParam *))arg1 #if GTK_CHECK_VERSION(3,0,0) -- cgit