summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.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/widgets/Composite.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/widgets/Composite.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java
index 8d68182c7d..09e5150b5b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java
@@ -382,7 +382,7 @@ public void drawBackground (GC gc, int x, int y, int width, int height, int offs
int /*long*/ drawable = control.backgroundImage.pixmap;
int /*long*/ xDrawable = OS.GDK_PIXMAP_XID (drawable);
int [] w = new int [1], h = new int [1];
- OS.gdk_drawable_get_size (drawable, w, h);
+ gdk_pixmap_get_size (drawable, w, h);
surface = Cairo.cairo_xlib_surface_create (xDisplay, xDrawable, xVisual, w [0], h [0]);
if (surface == 0) error (SWT.ERROR_NO_HANDLES);
} else {