summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorericm <ericm>1999-11-24 00:20:13 (GMT)
committerericm <ericm>1999-11-24 00:20:13 (GMT)
commitbe89e43c7fbc9554b9b1daa5a2ad02eb3be030b7 (patch)
tree0bdfa001712e24cd9caf5fe282b7b63b9aa0ef1c /generic
parentb6cf1cf2288ef3a39ed7ff39ec16deb96f206f9a (diff)
downloadtk-be89e43c7fbc9554b9b1daa5a2ad02eb3be030b7.zip
tk-be89e43c7fbc9554b9b1daa5a2ad02eb3be030b7.tar.gz
tk-be89e43c7fbc9554b9b1daa5a2ad02eb3be030b7.tar.bz2
Additions to update vertical scrollbar info for listboxes when listvar changes.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkListbox.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c
index 6f4f1ec..ced0620 100644
--- a/generic/tkListbox.c
+++ b/generic/tkListbox.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkListbox.c,v 1.11 1999/11/23 23:52:13 hobbs Exp $
+ * RCS: @(#) $Id: tkListbox.c,v 1.12 1999/11/24 00:20:13 ericm Exp $
*/
#include "tkPort.h"
@@ -3193,6 +3193,10 @@ ListboxListVarProc(clientData, interp, name1, name2, flags)
}
}
+ if (oldLength != listPtr->nElements) {
+ listPtr->flags |= UPDATE_V_SCROLLBAR;
+ }
+
/*
* The computed maxWidth may have changed as a result of this operation.
* However, we don't want to recompute it every time this trace fires