summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-13 12:49:56 -0400
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-08-14 14:45:36 +0530
commit73b8760cc71f23fc1adf4097ba30ab56c13451ed (patch)
treee33f8414ecff2894d424832622f04bf1db92da35 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
parent31720edb505f97bebd7f644d62b276e4d39389cb (diff)
downloadeclipse.platform.swt-73b8760cc71f23fc1adf4097ba30ab56c13451ed.tar.gz
eclipse.platform.swt-73b8760cc71f23fc1adf4097ba30ab56c13451ed.tar.xz
eclipse.platform.swt-73b8760cc71f23fc1adf4097ba30ab56c13451ed.zip
Omit use of gdk_drawable_get_size for newer GTK+ and make it dynamic
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
index a5dc056ffc..61021eb94a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
@@ -2751,11 +2751,10 @@ void getSize(int[] width, int[] height) {
if (OS.GTK_VERSION >= OS.VERSION(2, 24, 0)) {
width[0] = OS.gdk_window_get_width(data.drawable);
height[0] = OS.gdk_window_get_height(data.drawable);
- return;
} else {
OS.gdk_drawable_get_size(data.drawable, width, height);
- return;
}
+ return;
}
if (OS.USE_CAIRO) {
int /*long*/ surface = Cairo.cairo_get_target(handle);