diff options
author | jenglish <jenglish@flightlab.com> | 2011-09-22 18:34:53 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2011-09-22 18:34:53 (GMT) |
commit | 6f0061cc623242e99306b0dc9e5642b84be8cef5 (patch) | |
tree | 9da9e1432ea629149cd1208dee9f5957888d3b25 /generic/ttk/ttkSquare.c | |
parent | 6d71bc534ef26440835770cb3b305fb91074f724 (diff) | |
parent | 3d7771a4c563657f852eddc6b6e5a1e5223cd568 (diff) | |
download | tk-6f0061cc623242e99306b0dc9e5642b84be8cef5.zip tk-6f0061cc623242e99306b0dc9e5642b84be8cef5.tar.gz tk-6f0061cc623242e99306b0dc9e5642b84be8cef5.tar.bz2 |
Move -takefocus option out of ttkCoreOptionSpecs,
explicitly specify it on individual widgets.
[Bug 3404541], [Bug 1204186].
Diffstat (limited to 'generic/ttk/ttkSquare.c')
-rw-r--r-- | generic/ttk/ttkSquare.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/ttk/ttkSquare.c b/generic/ttk/ttkSquare.c index 23caeb4..d002f2f 100644 --- a/generic/ttk/ttkSquare.c +++ b/generic/ttk/ttkSquare.c @@ -50,8 +50,6 @@ typedef struct static Tk_OptionSpec SquareOptionSpecs[] = { - WIDGET_TAKES_FOCUS, - {TK_OPTION_PIXELS, "-borderwidth", "borderWidth", "BorderWidth", DEFAULT_BORDERWIDTH, Tk_Offset(Square,square.borderWidthObj), -1, 0,0,GEOMETRY_CHANGED }, @@ -76,6 +74,7 @@ static Tk_OptionSpec SquareOptionSpecs[] = {TK_OPTION_ANCHOR, "-anchor", "anchor", "Anchor", NULL, Tk_Offset(Square,square.anchorObj), -1, TK_OPTION_NULL_OK, 0, 0}, + WIDGET_TAKEFOCUS_TRUE, WIDGET_INHERIT_OPTIONS(ttkCoreOptionSpecs) }; |