diff options
author | ericm <ericm> | 1999-11-24 00:20:13 (GMT) |
---|---|---|
committer | ericm <ericm> | 1999-11-24 00:20:13 (GMT) |
commit | be89e43c7fbc9554b9b1daa5a2ad02eb3be030b7 (patch) | |
tree | 0bdfa001712e24cd9caf5fe282b7b63b9aa0ef1c /generic/tkListbox.c | |
parent | b6cf1cf2288ef3a39ed7ff39ec16deb96f206f9a (diff) | |
download | tk-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/tkListbox.c')
-rw-r--r-- | generic/tkListbox.c | 6 |
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 |