From 2c265bf08a5ee6cfef4b73291f906166838b69b6 Mon Sep 17 00:00:00 2001 From: Arun Thondapu Date: Mon, 15 Oct 2012 17:59:16 +0530 Subject: Bug 391267 fix gtk_render_check() parameter --- .../gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java index a457f381cf..7b18bdc34d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java @@ -233,12 +233,12 @@ void gtk_render_option (long /*int*/ style, long /*int*/ window, int state_type, void gtk_render_check(long /*int*/ style, long /*int*/ window, int state_type, int shadow_type, long /*int*/ widget, byte[] detail, int x , int y, int width, int height) { if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)) { - long /*int*/ cairo = OS.gdk_cairo_create(window); + long /*int*/ cairo = OS.gdk_cairo_create (window); long /*int*/ context = OS.gtk_widget_get_style_context (style); - OS.gtk_render_check(context, cairo, context, y, width, height); + OS.gtk_render_check (context, cairo, x, y, width, height); Cairo.cairo_destroy (cairo); } else { - OS.gtk_paint_check(style, window, state_type, shadow_type, null, widget, detail, x, y, width, height); + OS.gtk_paint_check (style, window, state_type, shadow_type, null, widget, detail, x, y, width, height); } } -- cgit