summaryrefslogtreecommitdiffstats
path: root/generic/tkScale.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-24 20:47:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-24 20:47:43 (GMT)
commit58c218ca973bfc0c773e821d360002d93ab85f02 (patch)
treefe664adc8ffceb3d0f3e63390de8f2c1bb37d7d4 /generic/tkScale.h
parentc7a7046bd0dbb6f570e1d5a5076bb654f1946a23 (diff)
downloadtk-58c218ca973bfc0c773e821d360002d93ab85f02.zip
tk-58c218ca973bfc0c773e821d360002d93ab85f02.tar.gz
tk-58c218ca973bfc0c773e821d360002d93ab85f02.tar.bz2
Some more internal use of TkSizeT (improvement of older code). No longer test for TCL_TYPE_I, since it's not in an accepted TIP yet.
Diffstat (limited to 'generic/tkScale.h')
-rw-r--r--generic/tkScale.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/generic/tkScale.h b/generic/tkScale.h
index 043d23c..d0be190 100644
--- a/generic/tkScale.h
+++ b/generic/tkScale.h
@@ -85,11 +85,7 @@ typedef struct TkScale {
int repeatInterval; /* Interval between autorepeats (in ms). */
char *label; /* Label to display above or to right of
* scale; NULL means don't display a label. */
-#if TK_MAJOR_VERSION > 8
- size_t labelLength; /* Number of non-NULL chars. in label. */
-#else
- unsigned int labelLength; /* Number of non-NULL chars. in label. */
-#endif
+ TkSizeT labelLength; /* Number of non-NULL chars. in label. */
enum state state; /* Values are active, normal, or disabled.
* Value of scale cannot be changed when
* disabled. */