summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkLabel.c
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2007-11-18 19:20:24 (GMT)
committerjenglish <jenglish@flightlab.com>2007-11-18 19:20:24 (GMT)
commitaa5ebe3414405d7b4ad1a8271f395866e8a65f79 (patch)
treeaadad427b46a83b0e4b696481aba274e50fec32d /generic/ttk/ttkLabel.c
parentd9b51f4b71e2318378ed9a818970213c3b381894 (diff)
downloadtk-aa5ebe3414405d7b4ad1a8271f395866e8a65f79.zip
tk-aa5ebe3414405d7b4ad1a8271f395866e8a65f79.tar.gz
tk-aa5ebe3414405d7b4ad1a8271f395866e8a65f79.tar.bz2
* generic/ttk/ttkFrame.c: Use sublayout for ttk::labelframe labels
instead of single element. * generic/ttk/ttkLabel.c: Default -anchor for text and label elements is now "w" instead of "center". Fixes [Bug 1614540]. * library/ttk/defaults.tcl, library/ttk/*Theme.tcl: Button styles now need explicit "-anchor center".
Diffstat (limited to 'generic/ttk/ttkLabel.c')
-rw-r--r--generic/ttk/ttkLabel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/ttk/ttkLabel.c b/generic/ttk/ttkLabel.c
index 58bdceb..18c4f99 100644
--- a/generic/ttk/ttkLabel.c
+++ b/generic/ttk/ttkLabel.c
@@ -1,4 +1,4 @@
-/* $Id: ttkLabel.c,v 1.8 2007/05/03 22:15:59 dkf Exp $
+/* $Id: ttkLabel.c,v 1.9 2007/11/18 19:20:26 jenglish Exp $
*
* text, image, and label elements.
*
@@ -66,7 +66,7 @@ static Ttk_ElementOptionSpec TextElementOptions[] =
{ "-width", TK_OPTION_INT,
Tk_Offset(TextElement,widthObj), "-1"},
{ "-anchor", TK_OPTION_ANCHOR,
- Tk_Offset(TextElement,anchorObj), "center"},
+ Tk_Offset(TextElement,anchorObj), "w"},
{ "-justify", TK_OPTION_JUSTIFY,
Tk_Offset(TextElement,justifyObj), "left" },
{ "-wraplength", TK_OPTION_PIXELS,
@@ -474,7 +474,7 @@ static Ttk_ElementOptionSpec LabelElementOptions[] =
{ "-width", TK_OPTION_INT,
Tk_Offset(LabelElement,text.widthObj), ""},
{ "-anchor", TK_OPTION_ANCHOR,
- Tk_Offset(LabelElement,text.anchorObj), "center"},
+ Tk_Offset(LabelElement,text.anchorObj), "w"},
{ "-justify", TK_OPTION_JUSTIFY,
Tk_Offset(LabelElement,text.justifyObj), "left" },
{ "-wraplength", TK_OPTION_PIXELS,