diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-11-02 11:57:24 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-11-02 11:57:24 -0400 |
commit | d5a464227052c1e758c0c2a306ea3e3b832c9dfb (patch) | |
tree | fd6e8463e7e190fb86e761103783a8e0e756a898 /bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java | |
parent | 60a6fb6b981ba4a18d6a3abcdade50a4f3068243 (diff) | |
download | eclipse.platform.swt-d5a464227052c1e758c0c2a306ea3e3b832c9dfb.tar.gz eclipse.platform.swt-d5a464227052c1e758c0c2a306ea3e3b832c9dfb.tar.xz eclipse.platform.swt-d5a464227052c1e758c0c2a306ea3e3b832c9dfb.zip |
add OS.GTK3 flag and use everywhere instead of VERSION(3,0,0)
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java index f3b4ee27c8..c86aa87c92 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java @@ -57,7 +57,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) { long /*int*/ gtkStyle = OS.gtk_widget_get_style (separatorHandle); theme.transferClipping(gc, gtkStyle); if ((parent.style & SWT.VERTICAL) != 0) { - if (OS.GTK_VERSION >= OS.VERSION (3, 0, 0)) { + if (OS.GTK3) { long /*int*/ cairo = OS.gdk_cairo_create (drawable); long /*int*/ context = OS.gtk_widget_get_style_context (separatorHandle); OS.gtk_render_line (context, cairo, bounds.x, bounds.y + bounds.height / 2, bounds.x + bounds.width, bounds.y + bounds.height / 2); @@ -66,7 +66,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) { OS.gtk_paint_hline(gtkStyle, drawable, state_type, null, separatorHandle, detail, bounds.x, bounds.x + bounds.width, bounds.y + bounds.height / 2); } } else { - if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)) { + if (OS.GTK3) { long /*int*/ cairo = OS.gdk_cairo_create (drawable); long /*int*/ context = OS.gtk_widget_get_style_context (separatorHandle); OS.gtk_render_line (context, cairo, bounds.x + bounds.width / 2, bounds.y, bounds.x + bounds.width / 2, bounds.y + bounds.height); |