diff options
author | Christophe Cornu <ccornu> | 2003-02-20 18:51:35 +0000 |
---|---|---|
committer | Christophe Cornu <ccornu> | 2003-02-20 18:51:35 +0000 |
commit | 06f4740293e90e57bff4533048824d8ea3910bfe (patch) | |
tree | f3a6a120dc1bdc19148d1b2e91c153538f54cebf | |
parent | a58accec9382396f576ddc7ebd58a8cbebc811ff (diff) | |
download | eclipse.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.java | 5 |
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 (); } |