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/gtk/org/eclipse/swt/graphics/Region.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/gtk/org/eclipse/swt/graphics/Region.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java index 482e1b4c02..7ac0d994ad 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java @@ -86,7 +86,7 @@ Region(Device device, long /*int*/ handle) { } static long /*int*/ gdk_region_polygon(int[] pointArray, int npoints, int fill_rule) { - if (OS.GTK_VERSION < OS.VERSION(3, 0, 0)) { + if (!OS.GTK3) { return OS.gdk_region_polygon(pointArray, npoints, fill_rule); } //TODO this does not perform well and could fail if the polygon is too big @@ -124,7 +124,7 @@ static long /*int*/ gdk_region_polygon(int[] pointArray, int npoints, int fill_r } static void gdk_region_get_rectangles(long /*int*/ region, long /*int*/[] rectangles, int[] n_rectangles) { - if (OS.GTK_VERSION < OS.VERSION(3, 0, 0)) { + if (!OS.GTK3) { OS.gdk_region_get_rectangles (region, rectangles, n_rectangles); return; } |