diff options
author | jenglish <jenglish@flightlab.com> | 2007-11-05 16:37:49 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2007-11-05 16:37:49 (GMT) |
commit | b88f7f0e3c9b295f3afcb692d46f98cd1bc8c2c0 (patch) | |
tree | c96290561b7c3e77197e41a81957b4d04f0f6a31 /macosx/ttkMacOSXTheme.c | |
parent | f3a661b3ff891f2c6dc573d4e84abf1c78048c29 (diff) | |
download | tk-b88f7f0e3c9b295f3afcb692d46f98cd1bc8c2c0.zip tk-b88f7f0e3c9b295f3afcb692d46f98cd1bc8c2c0.tar.gz tk-b88f7f0e3c9b295f3afcb692d46f98cd1bc8c2c0.tar.bz2 |
* macosx/ttkMacOSXTheme.c(TreeitemLayout): Remove focus ring
from treeview items on OSX (problem reported by Kevin Walzer).
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r-- | macosx/ttkMacOSXTheme.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c index 616a0aa..88ff37a 100644 --- a/macosx/ttkMacOSXTheme.c +++ b/macosx/ttkMacOSXTheme.c @@ -27,7 +27,7 @@ * top-level window, not to the Tk_Window. BoxToRect() * accounts for this. * - * RCS: @(#) $Id: ttkMacOSXTheme.c,v 1.13 2007/10/30 15:22:52 jenglish Exp $ + * RCS: @(#) $Id: ttkMacOSXTheme.c,v 1.14 2007/11/05 16:37:50 jenglish Exp $ */ #include "tkMacOSXPrivate.h" @@ -953,12 +953,20 @@ TTK_BEGIN_LAYOUT(ProgressbarLayout) TTK_END_LAYOUT /* Tree heading -- no border, fixed height */ -TTK_BEGIN_LAYOUT(TreeHeadingLayout) +TTK_BEGIN_LAYOUT(TreeheadingLayout) TTK_NODE("Treeheading.cell", TTK_FILL_X) TTK_NODE("Treeheading.image", TTK_PACK_RIGHT) TTK_NODE("Treeheading.text", 0) TTK_END_LAYOUT +/* Tree items -- omit focus ring */ +TTK_BEGIN_LAYOUT(TreeitemLayout) + TTK_GROUP("Treeitem.padding", TTK_FILL_BOTH, + TTK_NODE("Treeitem.indicator", TTK_PACK_LEFT) + TTK_NODE("Treeitem.image", TTK_PACK_LEFT) + TTK_NODE("Treeitem.text", TTK_PACK_LEFT)) +TTK_END_LAYOUT + /*---------------------------------------------------------------------- * +++ Initialization. */ @@ -1026,7 +1034,8 @@ static int AquaTheme_Init(Tcl_Interp *interp) Ttk_RegisterLayout(themePtr, "TCombobox", ComboboxLayout); Ttk_RegisterLayout(themePtr, "TProgressbar", ProgressbarLayout); Ttk_RegisterLayout(themePtr, "TNotebook.Tab", TabLayout); - Ttk_RegisterLayout(themePtr, "Heading", TreeHeadingLayout); + Ttk_RegisterLayout(themePtr, "Heading", TreeheadingLayout); + Ttk_RegisterLayout(themePtr, "Item", TreeitemLayout); Tcl_PkgProvide(interp, "ttk::theme::aqua", TTK_VERSION); return TCL_OK; |