From 772eba60342f660557d66c688c0f5931749c4e89 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Mon, 8 Oct 2012 22:35:12 +0300 Subject: Fix gtk_render_frame parameters. There was an error in the GTK 3 (untestable for now) code. Spotted by Arun Thondapu. --- .../org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java') diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java index 3a8ea6bf04..e03d9664a6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java @@ -2036,7 +2036,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); -- cgit