summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkTreeview.c
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2011-09-22 18:34:53 (GMT)
committerjenglish <jenglish@flightlab.com>2011-09-22 18:34:53 (GMT)
commit6f0061cc623242e99306b0dc9e5642b84be8cef5 (patch)
tree9da9e1432ea629149cd1208dee9f5957888d3b25 /generic/ttk/ttkTreeview.c
parent6d71bc534ef26440835770cb3b305fb91074f724 (diff)
parent3d7771a4c563657f852eddc6b6e5a1e5223cd568 (diff)
downloadtk-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/ttkTreeview.c')
-rw-r--r--generic/ttk/ttkTreeview.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index b59d864..b17ae45 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -438,8 +438,6 @@ typedef struct {
static const char *SelectModeStrings[] = { "none", "browse", "extended", NULL };
static Tk_OptionSpec TreeviewOptionSpecs[] = {
- WIDGET_TAKES_FOCUS,
-
{TK_OPTION_STRING, "-columns", "columns", "Columns",
"", Tk_Offset(Treeview,tree.columnsObj), -1,
0,0,COLUMNS_CHANGED | GEOMETRY_CHANGED /*| READONLY_OPTION*/ },
@@ -468,6 +466,7 @@ static Tk_OptionSpec TreeviewOptionSpecs[] = {
NULL, -1, Tk_Offset(Treeview, tree.yscroll.scrollCmd),
TK_OPTION_NULL_OK, 0, SCROLLCMD_CHANGED},
+ WIDGET_TAKEFOCUS_TRUE,
WIDGET_INHERIT_OPTIONS(ttkCoreOptionSpecs)
};