summaryrefslogtreecommitdiffstats
path: root/generic/tkGrid.c
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1999-01-06 21:10:45 (GMT)
committerstanton <stanton@noemail.net>1999-01-06 21:10:45 (GMT)
commit2f8dc5c5df5a36b6738cbc400429373023afdd45 (patch)
treef3b0b77980dea9353ef24843caa0eacb634e1ffb /generic/tkGrid.c
parentd8e58295265b00d0a5a97a730d1d9e36ac941588 (diff)
downloadtk-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.c5
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;
}