summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjenglish@flightlab.com <jenglish>2007-04-28 01:22:10 (GMT)
committerjenglish@flightlab.com <jenglish>2007-04-28 01:22:10 (GMT)
commit8004ea294e6a11f65dbc681dea59f32ea9c8e49c (patch)
treec07555f33439a90aec5665d2586f9ea34e4bda36 /generic/ttk
parent0995e8da099b7790846a5a8e9292176c70f95a8b (diff)
downloadtk-8004ea294e6a11f65dbc681dea59f32ea9c8e49c.zip
tk-8004ea294e6a11f65dbc681dea59f32ea9c8e49c.tar.gz
tk-8004ea294e6a11f65dbc681dea59f32ea9c8e49c.tar.bz2
* generic/ttk/ttkTreeview.c(TagOptionSpecs): Use TK_OPTION_STRING
instead of TK_OPTION_FONT to avoid resource leak in tag management.
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkTreeview.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index 9e94d6a..8d36c60 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -1,4 +1,4 @@
-/* $Id: ttkTreeview.c,v 1.15 2007/03/07 23:46:34 das Exp $
+/* $Id: ttkTreeview.c,v 1.16 2007/04/28 01:22:10 jenglish Exp $
* Copyright (c) 2004, Joe English
*
* ttk::treeview widget implementation.
@@ -185,13 +185,13 @@ static Tk_OptionSpec TagOptionSpecs[] =
{TK_OPTION_ANCHOR, "-anchor", "anchor", "Anchor",
NULL, Tk_Offset(DisplayItem,anchorObj), -1,
TK_OPTION_NULL_OK, 0, GEOMETRY_CHANGED},
- {TK_OPTION_COLOR, "-background", "windowColor", "WindowColor",
+ {TK_OPTION_STRING, "-background", "windowColor", "WindowColor", /*SB:COLOR*/
NULL, Tk_Offset(DisplayItem,backgroundObj), -1,
TK_OPTION_NULL_OK,0,0 },
- {TK_OPTION_COLOR, "-foreground", "textColor", "TextColor",
+ {TK_OPTION_STRING, "-foreground", "textColor", "TextColor", /*SB:COLOR*/
NULL, Tk_Offset(DisplayItem,foregroundObj), -1,
TK_OPTION_NULL_OK,0,0 },
- {TK_OPTION_FONT, "-font", "font", "Font",
+ {TK_OPTION_STRING, "-font", "font", "Font", /* SB:FONT */
NULL, Tk_Offset(DisplayItem,fontObj), -1,
TK_OPTION_NULL_OK,0,GEOMETRY_CHANGED },