Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor2012-09-18 15:09:15 +0000
committerSilenio Quarti2012-09-24 19:18:59 +0000
commit2d6a57f6ecbc6b63ed5329bf0b00d776b893cc6f (patch)
treed35e8626df635bc79af5ec492e1a0b187ea8c164
parent5721cfd149c1026b4c21848f64c2b57027ac8c7e (diff)
downloadeclipse.platform.swt-2d6a57f6ecbc6b63ed5329bf0b00d776b893cc6f.tar.gz
eclipse.platform.swt-2d6a57f6ecbc6b63ed5329bf0b00d776b893cc6f.tar.xz
eclipse.platform.swt-2d6a57f6ecbc6b63ed5329bf0b00d776b893cc6f.zip
define GTK_WIDGET_FLAGS to avoid compilation error against GTK+ 3
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h3
1 files changed, 3 insertions, 0 deletions
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)

Back to the top