summaryrefslogtreecommitdiffstats
path: root/generic/tkScrollbar.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-08 07:23:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-08 07:23:18 (GMT)
commit4ffe7c28ee0ab1fa2d8b5d9b38e7e2edde3e4c05 (patch)
tree359b631c47633e5b071ef0d26465d56d36e7eb3d /generic/tkScrollbar.h
parentfca3a144c468de939dced0bcbf211b4228efaec2 (diff)
downloadtk-4ffe7c28ee0ab1fa2d8b5d9b38e7e2edde3e4c05.zip
tk-4ffe7c28ee0ab1fa2d8b5d9b38e7e2edde3e4c05.tar.gz
tk-4ffe7c28ee0ab1fa2d8b5d9b38e7e2edde3e4c05.tar.bz2
Change flag NEW_STYLE_COMMANDS into OLD_STYLE_COMMANDS. This makes it easier to remove the deprecated part in the future.
If building with Tcl > 8, Don't build the compatibility Tk_Photo* (From Tk < 8.4 or so) functions any more.
Diffstat (limited to 'generic/tkScrollbar.h')
-rw-r--r--generic/tkScrollbar.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/generic/tkScrollbar.h b/generic/tkScrollbar.h
index 66b12b8..99f16a4 100644
--- a/generic/tkScrollbar.h
+++ b/generic/tkScrollbar.h
@@ -93,21 +93,21 @@ typedef struct TkScrollbar {
* form (totalUnits, windowUnits, firstUnit, and lastUnit), or the "new"
* form (firstFraction and lastFraction). FirstFraction and lastFraction
* will always be valid, but the old-style information is only valid if
- * the NEW_STYLE_COMMANDS flag is 0.
+ * the OLD_STYLE_COMMANDS flag is 1.
*/
#ifndef TK_NO_DEPRECATED
int totalUnits; /* Total dimension of application, in units.
- * Valid only if the NEW_STYLE_COMMANDS flag
- * isn't set. */
+ * Valid only if the OLD_STYLE_COMMANDS flag
+ * is set. */
int windowUnits; /* Maximum number of units that can be
* displayed in the window at once. Valid only
- * if the NEW_STYLE_COMMANDS flag isn't set. */
+ * if the OLD_STYLE_COMMANDS flag is set. */
int firstUnit; /* Number of last unit visible in
* application's window. Valid only if the
- * NEW_STYLE_COMMANDS flag isn't set. */
+ * OLD_STYLE_COMMANDS flag is set. */
int lastUnit; /* Index of last unit visible in window.
- * Valid only if the NEW_STYLE_COMMANDS flag
+ * Valid only if the OLD_STYLE_COMMANDS flag
* isn't set. */
#else
int dummy1,dummy2,dummy3,dummy4; /* sizeof(TkScrollbar) should not depend on TK_NO_DEPRECATED */
@@ -148,17 +148,17 @@ typedef struct TkScrollbar {
*
* REDRAW_PENDING: Non-zero means a DoWhenIdle handler has
* already been queued to redraw this window.
- * NEW_STYLE_COMMANDS: Non-zero means the new style of commands
+ * OLD_STYLE_COMMANDS: Non-zero means the old style of commands
* should be used to communicate with the widget:
- * ".t yview scroll 2 lines", instead of
- * ".t yview 40", for example.
+ * ".t yview 40", instead of
+ * ".t yview scroll 2 lines", for example.
* GOT_FOCUS: Non-zero means this window has the input
* focus.
*/
#define REDRAW_PENDING 1
#ifndef TK_NO_DEPRECATED
-#define NEW_STYLE_COMMANDS 2
+# define OLD_STYLE_COMMANDS 2
#endif /* TK_NO_DEPRECATED */
#define GOT_FOCUS 4