diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-10-14 10:00:46 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-10-14 10:00:46 (GMT) |
commit | c1b0cc0c0e0020c46e9a302876654713ab517753 (patch) | |
tree | 3cd0bedcd17e86b92149724e40050b43d71c1226 /generic | |
parent | 03959bc2552cfbfc9ce946622932addff52b6abe (diff) | |
download | tk-c1b0cc0c0e0020c46e9a302876654713ab517753.zip tk-c1b0cc0c0e0020c46e9a302876654713ab517753.tar.gz tk-c1b0cc0c0e0020c46e9a302876654713ab517753.tar.bz2 |
Eliminate info.commandSize, which is no longer necessary. This also unbreaks the Windows build.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkScrollbar.c | 6 | ||||
-rw-r--r-- | generic/tkScrollbar.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/generic/tkScrollbar.c b/generic/tkScrollbar.c index 9ac4716..3060c5f 100644 --- a/generic/tkScrollbar.c +++ b/generic/tkScrollbar.c @@ -160,7 +160,6 @@ Tk_ScrollbarObjCmd( scrollPtr->vertical = 0; scrollPtr->width = 0; scrollPtr->commandObj = NULL; - scrollPtr->commandSize = 0; scrollPtr->repeatDelay = 0; scrollPtr->repeatInterval = 0; scrollPtr->borderWidth = 0; @@ -545,11 +544,6 @@ ConfigureScrollbar( * from a 3-D border. */ - if (scrollPtr->commandObj != NULL) { - scrollPtr->commandSize = (int) strlen(Tcl_GetString(scrollPtr->commandObj)); - } else { - scrollPtr->commandSize = 0; - } if (scrollPtr->highlightWidth < 0) { scrollPtr->highlightWidth = 0; } diff --git a/generic/tkScrollbar.h b/generic/tkScrollbar.h index 9ac3d24..b3b1d86 100644 --- a/generic/tkScrollbar.h +++ b/generic/tkScrollbar.h @@ -43,7 +43,6 @@ typedef struct TkScrollbar { Tcl_Obj *commandObj; /* Command prefix to use when invoking * scrolling commands. NULL means don't invoke * commands. */ - int commandSize; /* Number of non-NULL bytes in command. */ int repeatDelay; /* How long to wait before auto-repeating on * scrolling actions (in ms). */ int repeatInterval; /* Interval between autorepeats (in ms). */ |