diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/ttk/ttkTreeview.c | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -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 }, |