summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-02-21 11:38:56 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-02-21 11:38:56 (GMT)
commitc1d57f8a74547d65efcee7a4b486fe4acf52dd61 (patch)
treeef4e81f0c6c614f2e49350fdd28311631b597382 /win
parent4e9a61da4ebdae3218ba32738cc6422743a9ae33 (diff)
downloadtk-c1d57f8a74547d65efcee7a4b486fe4acf52dd61.zip
tk-c1d57f8a74547d65efcee7a4b486fe4acf52dd61.tar.gz
tk-c1d57f8a74547d65efcee7a4b486fe4acf52dd61.tar.bz2
Correct the ttk::treeview border on XP and Vista.
Diffstat (limited to 'win')
-rw-r--r--win/ttkWinXPTheme.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/win/ttkWinXPTheme.c b/win/ttkWinXPTheme.c
index 2f5648f..5930481 100644
--- a/win/ttkWinXPTheme.c
+++ b/win/ttkWinXPTheme.c
@@ -1,5 +1,5 @@
/*
- * $Id: ttkWinXPTheme.c,v 1.22 2008/12/05 11:11:58 patthoyts Exp $
+ * $Id: ttkWinXPTheme.c,v 1.23 2009/02/21 11:38:56 patthoyts Exp $
*
* Tk theme engine which uses the Windows XP "Visual Styles" API
* Adapted from Georgios Petasis' XP theme patch.
@@ -751,6 +751,14 @@ static Ttk_StateTable header_statemap[] =
{ HIS_NORMAL, 0,0 },
};
+static Ttk_StateTable treeview_statemap[] =
+{
+ { TREIS_DISABLED, TTK_STATE_DISABLED, 0 },
+ { TREIS_SELECTED, TTK_STATE_SELECTED, 0},
+ { TREIS_HOT, TTK_STATE_ACTIVE, 0 },
+ { TREIS_NORMAL, 0,0 },
+};
+
static Ttk_StateTable tvpglyph_statemap[] =
{
{ GLPS_OPENED, TTK_STATE_OPEN, 0 },
@@ -997,6 +1005,8 @@ static ElementInfo ElementInfoTable[] = {
TP_SPLITBUTTON,toolbutton_statemap, NOPAD,0 },
{ "Menubutton.dropdown", &GenericElementSpec, L"TOOLBAR",
TP_SPLITBUTTONDROPDOWN,toolbutton_statemap, NOPAD,0 },
+ { "Treeview.field", &GenericElementSpec, L"TREEVIEW",
+ TVP_TREEITEM, treeview_statemap, PAD(1, 1, 1, 1), 0 },
{ "Treeitem.indicator", &TreeIndicatorElementSpec, L"TREEVIEW",
TVP_GLYPH, tvpglyph_statemap, PAD(1,1,6,0), PAD_MARGINS },
{ "Treeheading.border", &GenericElementSpec, L"HEADER",