diff options
author | stanton <stanton@noemail.net> | 1999-01-06 21:10:45 (GMT) |
---|---|---|
committer | stanton <stanton@noemail.net> | 1999-01-06 21:10:45 (GMT) |
commit | 2f8dc5c5df5a36b6738cbc400429373023afdd45 (patch) | |
tree | f3b0b77980dea9353ef24843caa0eacb634e1ffb /generic/tkGrid.c | |
parent | d8e58295265b00d0a5a97a730d1d9e36ac941588 (diff) | |
download | tk-2f8dc5c5df5a36b6738cbc400429373023afdd45.zip tk-2f8dc5c5df5a36b6738cbc400429373023afdd45.tar.gz tk-2f8dc5c5df5a36b6738cbc400429373023afdd45.tar.bz2 |
* generic/tkGrid.c: Fixed bug in "grid forget" that failed to cancelscriptics-tclpro-1-2-b1
pending idle handlers, resulting in a crash in a few odd cases.
FossilOrigin-Name: 065f580bc09c06aa780f311e4fdbbff497b1282b
Diffstat (limited to 'generic/tkGrid.c')
-rw-r--r-- | generic/tkGrid.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tkGrid.c b/generic/tkGrid.c index 46aa699..ea7a54c 100644 --- a/generic/tkGrid.c +++ b/generic/tkGrid.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkGrid.c,v 1.2 1998/09/14 18:23:12 stanton Exp $ + * RCS: @(#) $Id: tkGrid.c,v 1.3 1999/01/06 21:10:46 stanton Exp $ */ #include "tkInt.h" @@ -440,6 +440,9 @@ Tk_GridCmd(clientData, interp, argc, argv) slavePtr->padX = slavePtr->padY = 0; slavePtr->iPadX = slavePtr->iPadY = 0; slavePtr->doubleBw = 2*Tk_Changes(tkwin)->border_width; + if (slavePtr->flags & REQUESTED_RELAYOUT) { + Tk_CancelIdleCall(ArrangeGrid, (ClientData) slavePtr); + } slavePtr->flags = 0; slavePtr->sticky = 0; } |