diff options
author | Felipe Heidrich <fheidric> | 2006-08-16 16:31:33 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2006-08-16 16:31:33 +0000 |
commit | 0b1b16c0634a9ef32a0b1fb69a6a73ba32a11043 (patch) | |
tree | f4c37fe6aad9d670653fcda6826681f5cb5d6928 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java | |
parent | 85dbb1e6f6376e217ff1fc83edf19687f253bcb0 (diff) | |
download | eclipse.platform.swt-0b1b16c0634a9ef32a0b1fb69a6a73ba32a11043.tar.gz eclipse.platform.swt-0b1b16c0634a9ef32a0b1fb69a6a73ba32a11043.tar.xz eclipse.platform.swt-0b1b16c0634a9ef32a0b1fb69a6a73ba32a11043.zip |
Bug 153423 Text and Spinner initially report incorrect preferred size
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java index 460f60b396..6bbfe58e51 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java @@ -178,6 +178,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) { if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; int[] w = new int [1], h = new int [1]; + OS.gtk_widget_realize (handle); int /*long*/ layout = OS.gtk_entry_get_layout (handle); int /*long*/ hAdjustment = OS.gtk_spin_button_get_adjustment (handle); GtkAdjustment adjustment = new GtkAdjustment (); |