summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Theme
diff options
context:
space:
mode:
authorAlexander Kurtakov <akurtako@redhat.com>2012-10-08 22:35:12 +0300
committerAlexander Kurtakov <akurtako@redhat.com>2012-10-08 22:35:12 +0300
commit772eba60342f660557d66c688c0f5931749c4e89 (patch)
treea83d5c97a0542f95efecdea580e99cf11f515493 /bundles/org.eclipse.swt/Eclipse SWT Theme
parent9500727710c9626dc536a0475cdc8a8842b13b33 (diff)
downloadeclipse.platform.swt-772eba60342f660557d66c688c0f5931749c4e89.tar.gz
eclipse.platform.swt-772eba60342f660557d66c688c0f5931749c4e89.tar.xz
eclipse.platform.swt-772eba60342f660557d66c688c0f5931749c4e89.zip
Fix gtk_render_frame parameters.
There was an error in the GTK 3 (untestable for now) code. Spotted by Arun Thondapu.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Theme')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java
index 073f8b894a..8d7d44216b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java
@@ -193,7 +193,7 @@ void gtk_render_frame (long /*int*/ style, long /*int*/ window, int state_type,
if (OS.GTK_VERSION >= OS.VERSION (3, 0, 0)) {
long /*int*/ cairo = OS.gdk_cairo_create (window);
long /*int*/ context = OS.gtk_widget_get_style_context (style);
- OS.gtk_render_frame (context, cairo, context, y, width, height);
+ OS.gtk_render_frame (context, cairo, x, y, width, height);
Cairo.cairo_destroy (cairo);
} else {
OS.gtk_paint_flat_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);