summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2007-04-28 01:22:10 (GMT)
committerjenglish <jenglish@flightlab.com>2007-04-28 01:22:10 (GMT)
commited5a803d319fd3f25446e4f0fa277f0ee44327ff (patch)
treec07555f33439a90aec5665d2586f9ea34e4bda36
parent00ca168f6fce1b701996135592586af00a8aa058 (diff)
downloadtk-ed5a803d319fd3f25446e4f0fa277f0ee44327ff.zip
tk-ed5a803d319fd3f25446e4f0fa277f0ee44327ff.tar.gz
tk-ed5a803d319fd3f25446e4f0fa277f0ee44327ff.tar.bz2
* generic/ttk/ttkTreeview.c(TagOptionSpecs): Use TK_OPTION_STRING
instead of TK_OPTION_FONT to avoid resource leak in tag management.
-rw-r--r--ChangeLog5
-rw-r--r--generic/ttk/ttkTreeview.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b199880..6365f03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-27 Joe English <jenglish@users.sourceforge.net>
+
+ * generic/ttk/ttkTreeview.c(TagOptionSpecs): Use TK_OPTION_STRING
+ instead of TK_OPTION_FONT to avoid resource leak in tag management.
+
2007-04-26 Joe English <jenglish@users.sourceforge.net>
* macosx/ttkMacOSXTheme.c: Merged OFFSET_RECT processing into
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 },