summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2003-02-20 18:51:35 +0000
committerChristophe Cornu <ccornu>2003-02-20 18:51:35 +0000
commit06f4740293e90e57bff4533048824d8ea3910bfe (patch)
treef3a6a120dc1bdc19148d1b2e91c153538f54cebf
parenta58accec9382396f576ddc7ebd58a8cbebc811ff (diff)
downloadeclipse.platform.swt-06f4740293e90e57bff4533048824d8ea3910bfe.tar.gz
eclipse.platform.swt-06f4740293e90e57bff4533048824d8ea3910bfe.tar.xz
eclipse.platform.swt-06f4740293e90e57bff4533048824d8ea3910bfe.zip
PR29837
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
index ed073abfeb..e892199d9a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
@@ -821,6 +821,11 @@ public void setWidth (int width) {
if ((style & SWT.SEPARATOR) == 0) return;
if (width < 0) return;
OS.gtk_widget_set_size_request (handle, width, -1);
+ /*
+ * Force the container to allocate the size of its children.
+ */
+ int parentHandle = parent.parentingHandle ();
+ OS.gtk_container_resize_children (parentHandle);
resizeControl ();
}