summaryrefslogtreecommitdiffstats
path: root/generic/tkScrollbar.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-02-16 11:05:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-02-16 11:05:09 (GMT)
commit6214efc0cc2054edbeaf5d08ac8c9a1864797d4a (patch)
treec223ea89eeffa7e9747c0ad8809e46352bb1bf58 /generic/tkScrollbar.h
parent1e9b0fc3c284b29e0adaf439f2438d0246eb7838 (diff)
downloadtk-6214efc0cc2054edbeaf5d08ac8c9a1864797d4a.zip
tk-6214efc0cc2054edbeaf5d08ac8c9a1864797d4a.tar.gz
tk-6214efc0cc2054edbeaf5d08ac8c9a1864797d4a.tar.bz2
If compiled with TK_NO_DEPRECATED, remove support for old "set" and "get" syntax on scrollbar.
Diffstat (limited to 'generic/tkScrollbar.h')
-rw-r--r--generic/tkScrollbar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tkScrollbar.h b/generic/tkScrollbar.h
index b0cd085..66b12b8 100644
--- a/generic/tkScrollbar.h
+++ b/generic/tkScrollbar.h
@@ -96,6 +96,7 @@ typedef struct TkScrollbar {
* the NEW_STYLE_COMMANDS flag is 0.
*/
+#ifndef TK_NO_DEPRECATED
int totalUnits; /* Total dimension of application, in units.
* Valid only if the NEW_STYLE_COMMANDS flag
* isn't set. */
@@ -108,6 +109,9 @@ typedef struct TkScrollbar {
int lastUnit; /* Index of last unit visible in window.
* Valid only if the NEW_STYLE_COMMANDS flag
* isn't set. */
+#else
+ int dummy1,dummy2,dummy3,dummy4; /* sizeof(TkScrollbar) should not depend on TK_NO_DEPRECATED */
+#endif /* TK_NO_DEPRECATED */
double firstFraction; /* Position of first visible thing in window,
* specified as a fraction between 0 and
* 1.0. */
@@ -153,7 +157,9 @@ typedef struct TkScrollbar {
*/
#define REDRAW_PENDING 1
+#ifndef TK_NO_DEPRECATED
#define NEW_STYLE_COMMANDS 2
+#endif /* TK_NO_DEPRECATED */
#define GOT_FOCUS 4
/*