diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-11-15 16:57:31 -0500 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2012-11-15 16:57:31 -0500 |
commit | baed9aea79b6f1960ad62e56453d8644c62da158 (patch) | |
tree | 4b388c9971f605dabd6ec341d31f69dd59e7b98a | |
parent | 233afa56513cf295d957ac7559e89d4f7a84e559 (diff) | |
download | eclipse.platform.swt-394422.tar.gz eclipse.platform.swt-394422.tar.xz eclipse.platform.swt-394422.zip |
realize handle to solve Slider widget with SWT.DEFAULT size issue 394422
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java | 1 |
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 d8da452f0d..a907244316 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); |