diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-08-16 16:13:58 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2012-08-16 16:13:58 -0400 |
commit | 2d5e716dffd4dddfb3899a221100868813e35d21 (patch) | |
tree | 9999b757eaba65907106f29726e4a745bd7ea842 /bundles/org.eclipse.swt/Eclipse SWT | |
parent | 99e2cd5c57f5e0088828f77a6ce683637583beb4 (diff) | |
parent | a215b82e21c4662f93a9c3b2b1fa9b09bb89fa3f (diff) | |
download | eclipse.platform.swt-2d5e716dffd4dddfb3899a221100868813e35d21.tar.gz eclipse.platform.swt-2d5e716dffd4dddfb3899a221100868813e35d21.tar.xz eclipse.platform.swt-2d5e716dffd4dddfb3899a221100868813e35d21.zip |
Merge branch 'master' of http://git.eclipse.org/gitroot/platform/eclipse.platform.swt.git
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java index fecf64eba9..f738c23278 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java @@ -396,10 +396,15 @@ public Rectangle getThumbBounds () { public Rectangle getThumbTrackBounds () { checkWidget(); int x = 0, y = 0, width, height; - boolean hasA = OS.GTK_RANGE_HAS_STEPPER_A (handle); - boolean hasB = OS.GTK_RANGE_HAS_STEPPER_B (handle); - boolean hasC = OS.GTK_RANGE_HAS_STEPPER_C (handle); - boolean hasD = OS.GTK_RANGE_HAS_STEPPER_D (handle); + int[] has_stepper = new int[1]; + OS.gtk_widget_style_get (handle, OS.has_backward_stepper, has_stepper, 0); + boolean hasA = has_stepper[0] != 0; + OS.gtk_widget_style_get (handle, OS.has_secondary_backward_stepper, has_stepper, 0); + boolean hasB = has_stepper[0] != 0; + OS.gtk_widget_style_get (handle, OS.has_forward_stepper, has_stepper, 0); + boolean hasC = has_stepper[0] != 0; + OS.gtk_widget_style_get (handle, OS.has_secondary_forward_stepper, has_stepper, 0); + boolean hasD = has_stepper[0] != 0; GtkAllocation allocation = new GtkAllocation (); int stepperSize = 0; if ((style & SWT.VERTICAL) != 0) { |