summaryrefslogtreecommitdiffstats
path: root/generic/tkButton.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-14 16:25:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-14 16:25:21 (GMT)
commit39f0dce0e852ac81431c337fb50da0a1c0ec5eec (patch)
tree55ba35c4c8ef5753493f9e80c7affb7a3c40de9b /generic/tkButton.c
parenta5b431355b9a94c3f57f6de93d123a9b3ce65ff9 (diff)
downloadtk-39f0dce0e852ac81431c337fb50da0a1c0ec5eec.zip
tk-39f0dce0e852ac81431c337fb50da0a1c0ec5eec.tar.gz
tk-39f0dce0e852ac81431c337fb50da0a1c0ec5eec.tar.bz2
Make default underline -1 (again) when compiled with Tcl 8 headers
Diffstat (limited to 'generic/tkButton.c')
-rw-r--r--generic/tkButton.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tkButton.c b/generic/tkButton.c
index f0dc07b..7ca84c4 100644
--- a/generic/tkButton.c
+++ b/generic/tkButton.c
@@ -143,8 +143,8 @@ static const Tk_OptionSpec labelOptionSpecs[] = {
{TK_OPTION_STRING, "-textvariable", "textVariable", "Variable",
DEF_BUTTON_TEXT_VARIABLE, offsetof(TkButton, textVarNamePtr), TCL_INDEX_NONE,
TK_OPTION_NULL_OK, 0, 0},
- {TK_OPTION_INDEX, "-underline", "underline", "Underline", NULL,
- TCL_INDEX_NONE, offsetof(TkButton, underline), TK_OPTION_NULL_OK, 0, 0},
+ {TK_OPTION_INDEX, "-underline", "underline", "Underline",
+ TK_OPTION_UNDERLINE_DEF(TkButton, underline), 0},
{TK_OPTION_STRING, "-width", "width", "Width",
DEF_BUTTON_WIDTH, offsetof(TkButton, widthPtr), TCL_INDEX_NONE, 0, 0, 0},
{TK_OPTION_PIXELS, "-wraplength", "wrapLength", "WrapLength",
@@ -244,8 +244,8 @@ static const Tk_OptionSpec buttonOptionSpecs[] = {
{TK_OPTION_STRING, "-textvariable", "textVariable", "Variable",
DEF_BUTTON_TEXT_VARIABLE, offsetof(TkButton, textVarNamePtr), TCL_INDEX_NONE,
TK_OPTION_NULL_OK, 0, 0},
- {TK_OPTION_INDEX, "-underline", "underline", "Underline", NULL,
- TCL_INDEX_NONE, offsetof(TkButton, underline), TK_OPTION_NULL_OK, 0, 0},
+ {TK_OPTION_INDEX, "-underline", "underline", "Underline",
+ TK_OPTION_UNDERLINE_DEF(TkButton, underline), 0},
{TK_OPTION_STRING, "-width", "width", "Width",
DEF_BUTTON_WIDTH, offsetof(TkButton, widthPtr), TCL_INDEX_NONE, 0, 0, 0},
{TK_OPTION_PIXELS, "-wraplength", "wrapLength", "WrapLength",
@@ -354,8 +354,8 @@ static const Tk_OptionSpec checkbuttonOptionSpecs[] = {
TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_STRING, "-tristatevalue", "tristateValue", "TristateValue",
DEF_BUTTON_TRISTATE_VALUE, offsetof(TkButton, tristateValuePtr), TCL_INDEX_NONE, 0, 0, 0},
- {TK_OPTION_INDEX, "-underline", "underline", "Underline", NULL,
- TCL_INDEX_NONE, offsetof(TkButton, underline), TK_OPTION_NULL_OK, 0, 0},
+ {TK_OPTION_INDEX, "-underline", "underline", "Underline",
+ TK_OPTION_UNDERLINE_DEF(TkButton, underline), 0},
{TK_OPTION_STRING, "-variable", "variable", "Variable",
DEF_CHECKBUTTON_VARIABLE, offsetof(TkButton, selVarNamePtr), TCL_INDEX_NONE,
TK_OPTION_NULL_OK, 0, 0},
@@ -464,8 +464,8 @@ static const Tk_OptionSpec radiobuttonOptionSpecs[] = {
TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_STRING, "-tristatevalue", "tristateValue", "TristateValue",
DEF_BUTTON_TRISTATE_VALUE, offsetof(TkButton, tristateValuePtr), TCL_INDEX_NONE, 0, 0, 0},
- {TK_OPTION_INDEX, "-underline", "underline", "Underline", NULL,
- TCL_INDEX_NONE, offsetof(TkButton, underline), TK_OPTION_NULL_OK, 0, 0},
+ {TK_OPTION_INDEX, "-underline", "underline", "Underline",
+ TK_OPTION_UNDERLINE_DEF(TkButton, underline), 0},
{TK_OPTION_STRING, "-value", "value", "Value",
DEF_BUTTON_VALUE, offsetof(TkButton, onValuePtr), TCL_INDEX_NONE, 0, 0, 0},
{TK_OPTION_STRING, "-variable", "variable", "Variable",