summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Theme
diff options
context:
space:
mode:
authorArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-10-15 17:59:16 +0530
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-10-15 17:59:16 +0530
commit2c265bf08a5ee6cfef4b73291f906166838b69b6 (patch)
tree78858e0b5b4048771d45ec9423e478e43f4ea84d /bundles/org.eclipse.swt/Eclipse SWT Theme
parent32e146465fbea87a81bbf86001a412945d162357 (diff)
downloadeclipse.platform.swt-2c265bf08a5ee6cfef4b73291f906166838b69b6.tar.gz
eclipse.platform.swt-2c265bf08a5ee6cfef4b73291f906166838b69b6.tar.xz
eclipse.platform.swt-2c265bf08a5ee6cfef4b73291f906166838b69b6.zip
Bug 391267 fix gtk_render_check() parameter
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/ButtonDrawData.java6
1 files 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);
}
}