summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2016-09-21 08:44:53 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2016-09-21 08:44:53 (GMT)
commite482b58d590299c58284aaea9b45e206fced7bdf (patch)
tree358b6b776c4c4d26662332f99e205eab13d9cdb9 /generic
parentb5deacd1f7c7553a45b73fffe25053df18895a8c (diff)
downloadtk-bug_d6b95ce492_alt.zip
tk-bug_d6b95ce492_alt.tar.gz
tk-bug_d6b95ce492_alt.tar.bz2
pack: shrink frame when last child is unpacked. Ticket [d6b95ce4]bug_d6b95ce492_alt
Diffstat (limited to 'generic')
-rwxr-xr-x[-rw-r--r--]generic/tkPack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkPack.c b/generic/tkPack.c
index 88a4b2d..3fa5c5e 100644..100755
--- a/generic/tkPack.c
+++ b/generic/tkPack.c
@@ -1363,6 +1363,9 @@ Unlink(
*/
if (masterPtr->slavePtr == NULL && masterPtr->flags & ALLOCED_MASTER) {
+ if (!(masterPtr->flags & DONT_PROPAGATE)) {
+ Tk_GeometryRequest(masterPtr->tkwin, 0, 0);
+ }
TkFreeGeometryMaster(masterPtr->tkwin, "pack");
masterPtr->flags &= ~ALLOCED_MASTER;
}