diff options
author | ericm <ericm> | 1999-11-17 22:13:02 (GMT) |
---|---|---|
committer | ericm <ericm> | 1999-11-17 22:13:02 (GMT) |
commit | 0d1c77ca4797bd6bfc72ff240cee6e2476890944 (patch) | |
tree | f2ba86105c2c141a3dcad92057d2de9ec4a44236 /generic | |
parent | e280e2f50c959dd7115b8f01b7b56e5c59b385d3 (diff) | |
download | tk-0d1c77ca4797bd6bfc72ff240cee6e2476890944.zip tk-0d1c77ca4797bd6bfc72ff240cee6e2476890944.tar.gz tk-0d1c77ca4797bd6bfc72ff240cee6e2476890944.tar.bz2 |
* tests/listbox.test: Added tests for ListboxUpdateHScrollbar.
* generic/tkListbox.c: Changed some old static buffers to base
size on TCL_DOUBLLE_SPACE instead of (completely) hardcoding the size.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkListbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c index 99c4350..9d75cd7 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.6 1999/11/17 21:56:37 ericm Exp $ + * RCS: @(#) $Id: tkListbox.c,v 1.7 1999/11/17 22:13:02 ericm Exp $ */ #include "tkPort.h" @@ -2667,7 +2667,7 @@ static void ListboxUpdateVScrollbar(listPtr) register Listbox *listPtr; /* Information about widget. */ { - char string[100]; + char string[TCL_DOUBLE_SPACE * 2]; double first, last; int result; Tcl_Interp *interp; @@ -2729,7 +2729,7 @@ static void ListboxUpdateHScrollbar(listPtr) register Listbox *listPtr; /* Information about widget. */ { - char string[60]; + char string[TCL_DOUBLE_SPACE * 2]; int result, windowWidth; double first, last; Tcl_Interp *interp; |