summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-11-01 21:26:52 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-11-01 21:26:52 (GMT)
commit19e72587e7d675d197daecdb202e28b64e428992 (patch)
tree473d0db705c5fe609e364c5d8aea0ba3f5b71e07 /generic
parent26f2d48f04f5a959c2ccb61f0e978c2d96203e6b (diff)
parent993fec89923aed373f173dbeecc3d8e41d5778fe (diff)
downloadtk-19e72587e7d675d197daecdb202e28b64e428992.zip
tk-19e72587e7d675d197daecdb202e28b64e428992.tar.gz
tk-19e72587e7d675d197daecdb202e28b64e428992.tar.bz2
Better fix for [b82bd4872b]: ttk::style configure -compound does not work
Diffstat (limited to 'generic')
-rw-r--r--generic/ttk/ttkButton.c4
-rw-r--r--generic/ttk/ttkNotebook.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/generic/ttk/ttkButton.c b/generic/ttk/ttkButton.c
index 72e9815..1be7ee6 100644
--- a/generic/ttk/ttkButton.c
+++ b/generic/ttk/ttkButton.c
@@ -81,8 +81,8 @@ static Tk_OptionSpec BaseOptionSpecs[] =
* Compound base/image options
*/
{TK_OPTION_STRING_TABLE, "-compound", "compound", "Compound",
- "none", Tk_Offset(Base,base.compoundObj), -1,
- TK_OPTION_DONT_SET_DEFAULT,(ClientData)ttkCompoundStrings,
+ NULL, Tk_Offset(Base,base.compoundObj), -1,
+ TK_OPTION_NULL_OK,(ClientData)ttkCompoundStrings,
GEOMETRY_CHANGED },
{TK_OPTION_STRING, "-padding", "padding", "Pad",
NULL, Tk_Offset(Base,base.paddingObj), -1,
diff --git a/generic/ttk/ttkNotebook.c b/generic/ttk/ttkNotebook.c
index 56439a6..39ed6aa 100644
--- a/generic/ttk/ttkNotebook.c
+++ b/generic/ttk/ttkNotebook.c
@@ -69,8 +69,8 @@ static Tk_OptionSpec TabOptionSpecs[] =
{TK_OPTION_STRING, "-image", "image", "Image", NULL/*default*/,
Tk_Offset(Tab,imageObj), -1, TK_OPTION_NULL_OK,0,GEOMETRY_CHANGED },
{TK_OPTION_STRING_TABLE, "-compound", "compound", "Compound",
- "none", Tk_Offset(Tab,compoundObj), -1,
- 0,(ClientData)ttkCompoundStrings,GEOMETRY_CHANGED },
+ NULL, Tk_Offset(Tab,compoundObj), -1,
+ TK_OPTION_NULL_OK,(ClientData)ttkCompoundStrings,GEOMETRY_CHANGED },
{TK_OPTION_INT, "-underline", "underline", "Underline", "-1",
Tk_Offset(Tab,underlineObj), -1, 0,0,GEOMETRY_CHANGED },
{TK_OPTION_END, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0 }