summaryrefslogtreecommitdiffstats
path: root/generic/tkScale.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-11 21:33:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-11 21:33:05 (GMT)
commit09fba835c8c9d68042f6fef960c025be7c8c3641 (patch)
tree5e38501bee08c156d14cba01ccef64012a94521b /generic/tkScale.h
parent1d1ca3a5dde2d56b10fab0dfa5f430b98760de8e (diff)
downloadtk-09fba835c8c9d68042f6fef960c025be7c8c3641.zip
tk-09fba835c8c9d68042f6fef960c025be7c8c3641.tar.gz
tk-09fba835c8c9d68042f6fef960c025be7c8c3641.tar.bz2
More preparation for TIP #494 compatibitly. Add 2 utility functions, which can retreive big strings and ByteArrays without length overflow.
Diffstat (limited to 'generic/tkScale.h')
-rw-r--r--generic/tkScale.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkScale.h b/generic/tkScale.h
index aa0feff..043d23c 100644
--- a/generic/tkScale.h
+++ b/generic/tkScale.h
@@ -85,7 +85,11 @@ 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. */
- int labelLength; /* Number of non-NULL chars. in 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
enum state state; /* Values are active, normal, or disabled.
* Value of scale cannot be changed when
* disabled. */