Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2012-11-02 11:58:24 -0400
committerSilenio Quarti2012-11-02 11:58:24 -0400
commit7b21fde0b245b63dc4c427b3a49b36098152c97b (patch)
treedeaf4e95f38e62efcb2836958e197afc7c34a5b7
parentd5a464227052c1e758c0c2a306ea3e3b832c9dfb (diff)
downloadeclipse.platform.swt-7b21fde0b245b63dc4c427b3a49b36098152c97b.tar.gz
eclipse.platform.swt-7b21fde0b245b63dc4c427b3a49b36098152c97b.tar.xz
eclipse.platform.swt-7b21fde0b245b63dc4c427b3a49b36098152c97b.zip
add OS.GTK3 flag and use everywhere instead of VERSION(3,0,0)
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java
index 7e04f91ae9..64bc083124 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java
@@ -90,7 +90,7 @@ int hit(Theme theme, Point position, Rectangle bounds) {
}
void gtk_render_extension(long /*int*/ style, long /*int*/ window, int state_type, int shadow_type, GdkRectangle area, long /*int*/ widget, byte[] detail, int x , int y, int width, int height, int gap_side) {
- if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)) {
+ if (OS.GTK3) {
long /*int*/ cairo = OS.gdk_cairo_create (window);
long /*int*/ context = OS.gtk_widget_get_style_context (style);
OS.gtk_render_extension(context, cairo, x, y, width, height, gap_side);

Back to the top