diff options
author | jenglish <jenglish@flightlab.com> | 2006-11-27 06:53:55 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2006-11-27 06:53:55 (GMT) |
commit | f712f4ec5ef0bcc07b9d89ea382dd50c02119ee6 (patch) | |
tree | 3306d90d76a3f92d63551f764257f107f5498d36 /generic/ttk/ttkTreeview.c | |
parent | f9e2925711ddf6f1acc994cb233cf91c8bdb11b2 (diff) | |
download | tk-f712f4ec5ef0bcc07b9d89ea382dd50c02119ee6.zip tk-f712f4ec5ef0bcc07b9d89ea382dd50c02119ee6.tar.gz tk-f712f4ec5ef0bcc07b9d89ea382dd50c02119ee6.tar.bz2 |
* generic/ttk/ttkWidget.c, generic/ttk/ttkPaned.c Fix for #1603506
* library/ttk/button.tcl, library/ttk/combobox.tcl,
library/ttk/utils.tcl: Rename ttk::CopyBindings to ttk::copyBindings
* generic/ttk/ttkTreeview.c, doc/ttk_treeview.n:
-displaycolumns {} now means "no columns" instead of "all columns".
Use -displaycolumns #all for "all columns" [Fixes #1547622].
Diffstat (limited to 'generic/ttk/ttkTreeview.c')
-rw-r--r-- | generic/ttk/ttkTreeview.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c index 6d8a4eb..70b328e 100644 --- a/generic/ttk/ttkTreeview.c +++ b/generic/ttk/ttkTreeview.c @@ -1,5 +1,5 @@ /* - * $Id: ttkTreeview.c,v 1.4 2006/11/24 18:04:14 jenglish Exp $ + * $Id: ttkTreeview.c,v 1.5 2006/11/27 06:53:55 jenglish Exp $ * Copyright (c) 2004, Joe English * * ttk::treeview widget implementation. @@ -420,7 +420,7 @@ static Tk_OptionSpec TreeviewOptionSpecs[] = "", Tk_Offset(Treeview,tree.columnsObj), -1, 0,0,COLUMNS_CHANGED | GEOMETRY_CHANGED /*| READONLY_OPTION*/ }, {TK_OPTION_STRING, "-displaycolumns","displayColumns","DisplayColumns", - "", Tk_Offset(Treeview,tree.displayColumnsObj), -1, + "#all", Tk_Offset(Treeview,tree.displayColumnsObj), -1, 0,0,DCOLUMNS_CHANGED | GEOMETRY_CHANGED }, {TK_OPTION_STRING, "-show", "show", "Show", DEFAULT_SHOW, Tk_Offset(Treeview,tree.showObj), -1, @@ -708,7 +708,7 @@ static int TreeviewInitDisplayColumns(Tcl_Interp *interp, Treeview *tv) return TCL_ERROR; } - if (ndcols == 0) { + if (!strcmp(Tcl_GetString(tv->tree.displayColumnsObj), "#all")) { ndcols = tv->tree.nColumns; displayColumns = (TreeColumn**)ckalloc((ndcols+1)*sizeof(TreeColumn*)); for (index = 0; index < ndcols; ++index) { |