From ed548011f4f983818b96640d346d126775013185 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Wed, 12 Sep 2012 15:27:27 +0300 Subject: Include gtkx.h and gdkx.h for GTK 3. GtkSocket and GtkPlug are no longer in gtk.h but in the X specific header gtkx.h for GTK 3. GDK X header is needed for the gdk_x11_* calls. Add the conditional includes to fix compilation for functions for this widgets. --- bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h index 54620509ff..6cee2a9cd8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h @@ -29,6 +29,10 @@ #include #include #include +#if GTK_CHECK_VERSION(3,0,0) +#include +#include +#endif #include #include #include -- cgit