aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor2012-11-15 16:57:31 (EST)
committerAlexander Kurtakov2012-11-16 02:56:03 (EST)
commit5ed9391060e1aab8e1f0348a337191397f8d0889 (patch)
tree4016084596a8eaf271a342a5b59120318f1b9417
parent592d29b2d91e140852d4120c2dafd39589e57883 (diff)
downloadeclipse.platform.swt-5ed9391060e1aab8e1f0348a337191397f8d0889.zip
eclipse.platform.swt-5ed9391060e1aab8e1f0348a337191397f8d0889.tar.gz
eclipse.platform.swt-5ed9391060e1aab8e1f0348a337191397f8d0889.tar.bz2
realize handle to solve Slider widget with SWT.DEFAULT size issue
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java
index d8da452..a907244 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java
@@ -259,6 +259,7 @@ void deregister () {
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
+ OS.gtk_widget_realize(handle);
if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0;
if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0;
Point size = computeNativeSize(handle, wHint, hHint, changed);