Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2012-10-16 21:17:00 +0000
committerAlexander Kurtakov2012-10-16 21:36:00 +0000
commitabdaf1530d41faa588e7d35f314248f593b64f7b (patch)
tree943212936f73d3e3ccc0644ee8f34ae8e5203d09
parentbe1837bda44f1f4591b65148475a5b1c442c47e1 (diff)
downloadeclipse.platform.swt-abdaf1530d41faa588e7d35f314248f593b64f7b.tar.gz
eclipse.platform.swt-abdaf1530d41faa588e7d35f314248f593b64f7b.tar.xz
eclipse.platform.swt-abdaf1530d41faa588e7d35f314248f593b64f7b.zip
Do not compile gtk_style_get_*_gc on GTK 3.
These macros are accessing GdkGC which is no lonver available in Gtk 3. As theme is not public api and not considered finish we can postpone it's migration to GTK 3 for the time work is restarted.
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h11
1 files changed, 10 insertions, 1 deletions
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 7fef365b16..c8fe8f479d 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
@@ -94,7 +94,7 @@
#include <X11/extensions/Xrender.h>
#endif
-/* Disable memmove/sizeof for sealed structs in GTK3 */
+/* Disable access to sealed structs in GTK3 */
#if GTK_CHECK_VERSION(3,0,0)
#define NO_GdkDragContext
#define NO_memmove__Lorg_eclipse_swt_internal_gtk_GdkDragContext_2II
@@ -102,6 +102,15 @@
#define NO_GtkSelectionData
#define NO_memmove__Lorg_eclipse_swt_internal_gtk_GtkSelectionData_2II
#define NO_memmove__Lorg_eclipse_swt_internal_gtk_GtkSelectionData_2JJ
+#define NO__1gtk_1style_1get_1bg_1gc
+#define NO__1gtk_1style_1get_1black_1gc
+#define NO__1gtk_1style_1get_1dark_1gc
+#define NO__1gtk_1style_1get_1fg_1gc
+#define NO__1gtk_1style_1get_1light_1gc
+#define NO__1gtk_1style_1get_1mid_1gc
+#define NO__1gtk_1style_1get_1text_1aa_1gc
+#define NO__1gtk_1style_1get_1text_1gc
+#define NO__1gtk_1style_1get_1white_1gc
#endif
#include "os_custom.h"

Back to the top