summaryrefslogtreecommitdiffstats
path: root/generic/tkTreeCtrl.h
diff options
context:
space:
mode:
authortreectrl <treectrl>2006-10-29 02:37:54 (GMT)
committertreectrl <treectrl>2006-10-29 02:37:54 (GMT)
commitda2b4034bf9a28eb79e86ab510b303731dd8c6d8 (patch)
treee4c94e6180862fd50674ef0df760bc6f41930c9f /generic/tkTreeCtrl.h
parent4617fc1b2f84739fb3f76365a17151c94fba8c7c (diff)
downloadtktreectrl-da2b4034bf9a28eb79e86ab510b303731dd8c6d8.zip
tktreectrl-da2b4034bf9a28eb79e86ab510b303731dd8c6d8.tar.gz
tktreectrl-da2b4034bf9a28eb79e86ab510b303731dd8c6d8.tar.bz2
COLUMN_FOR_EACH no longer iterates over the tail column if the tail is not allowed.
Diffstat (limited to 'generic/tkTreeCtrl.h')
-rw-r--r--generic/tkTreeCtrl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tkTreeCtrl.h b/generic/tkTreeCtrl.h
index 5fc6c3e..95386b8 100644
--- a/generic/tkTreeCtrl.h
+++ b/generic/tkTreeCtrl.h
@@ -7,7 +7,7 @@
* Copyright (c) 2002-2003 Christian Krone
* Copyright (c) 2003 ActiveState Corporation
*
- * RCS: @(#) $Id: tkTreeCtrl.h,v 1.59 2006/10/27 02:58:49 treectrl Exp $
+ * RCS: @(#) $Id: tkTreeCtrl.h,v 1.60 2006/10/29 02:37:54 treectrl Exp $
*/
#include "tkPort.h"
@@ -636,7 +636,8 @@ extern int TreeColumn_InitInterp(Tcl_Interp *interp);
extern void Tree_InitColumns(TreeCtrl *tree);
extern TreeColumn Tree_FindColumn(TreeCtrl *tree, int columnIndex);
-#define COLUMN_ALL ((TreeColumn) -1)
+#define COLUMN_ALL ((TreeColumn) -1) /* Every column. */
+#define COLUMN_NTAIL ((TreeColumn) -2) /* Every column but the tail. */
#define CFO_NOT_MANY 0x01
#define CFO_NOT_NULL 0x02
#define CFO_NOT_TAIL 0x04
@@ -649,6 +650,7 @@ struct ColumnForEach {
TreeCtrl *tree;
int error;
int all;
+ int ntail;
TreeColumn current;
TreeColumn next;
TreeColumn last;