diff options
author | jenglish <jenglish@flightlab.com> | 2007-01-11 14:49:45 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2007-01-11 14:49:45 (GMT) |
commit | a46a8df372318c40d2d0c346578eef7412a7b257 (patch) | |
tree | fe033de3dd789135611ff553cdad27ead5f00297 /generic/ttk/ttkTreeview.c | |
parent | 67771314a2fb4326cc411f74011c1d47edd3bfa5 (diff) | |
download | tk-a46a8df372318c40d2d0c346578eef7412a7b257.zip tk-a46a8df372318c40d2d0c346578eef7412a7b257.tar.gz tk-a46a8df372318c40d2d0c346578eef7412a7b257.tar.bz2 |
Revert addition of contravariant 'const' qualifiers,
to keep in sync with Tile codebase (which must remain
compatible with Tk 8.4).
Diffstat (limited to 'generic/ttk/ttkTreeview.c')
-rw-r--r-- | generic/ttk/ttkTreeview.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c index 0314b87..07a1b71 100644 --- a/generic/ttk/ttkTreeview.c +++ b/generic/ttk/ttkTreeview.c @@ -1,4 +1,4 @@ -/* $Id: ttkTreeview.c,v 1.11 2007/01/03 05:06:25 nijtmans Exp $ +/* $Id: ttkTreeview.c,v 1.12 2007/01/11 14:49:47 jenglish Exp $ * Copyright (c) 2004, Joe English * * ttk::treeview widget implementation. @@ -52,7 +52,7 @@ struct TreeItemRec Tcl_Obj *tagsObj; }; -static const Tk_OptionSpec ItemOptionSpecs[] = +static Tk_OptionSpec ItemOptionSpecs[] = { {TK_OPTION_STRING, "-text", "text", "Text", "", Tk_Offset(TreeItem,textObj), -1, @@ -174,7 +174,7 @@ typedef struct { Tcl_Obj *fontObj; } DisplayItem; -static const Tk_OptionSpec TagOptionSpecs[] = +static Tk_OptionSpec TagOptionSpecs[] = { {TK_OPTION_STRING, "-text", "text", "Text", NULL, Tk_Offset(DisplayItem,textObj), -1, @@ -259,7 +259,7 @@ static void FreeColumn(TreeColumn *column) /* Don't touch column->data, it's scratch storage */ } -static const Tk_OptionSpec ColumnOptionSpecs[] = +static Tk_OptionSpec ColumnOptionSpecs[] = { {TK_OPTION_INT, "-width", "width", "Width", DEF_COLWIDTH, -1, Tk_Offset(TreeColumn,width), @@ -279,7 +279,7 @@ static const Tk_OptionSpec ColumnOptionSpecs[] = {TK_OPTION_END, 0,0,0, NULL, -1,-1, 0,0,0} }; -static const Tk_OptionSpec HeadingOptionSpecs[] = +static Tk_OptionSpec HeadingOptionSpecs[] = { {TK_OPTION_STRING, "-text", "text", "Text", "", Tk_Offset(TreeColumn,headingObj), -1, @@ -425,7 +425,7 @@ typedef struct { static const char *SelectModeStrings[] = { "none", "browse", "extended", NULL }; -static const Tk_OptionSpec TreeviewOptionSpecs[] = +static Tk_OptionSpec TreeviewOptionSpecs[] = { WIDGET_TAKES_FOCUS, |