summaryrefslogtreecommitdiffstats
path: root/generic/tkMenubutton.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-07-02 13:58:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-07-02 13:58:21 (GMT)
commit32dfbede133921ddb52e77da15090b48ca29385b (patch)
treeb9de9356180a2ab644ce083e3202801b23aa6237 /generic/tkMenubutton.c
parent2c8eede9b0c6a025746f162918bf40395637119b (diff)
downloadtk-32dfbede133921ddb52e77da15090b48ca29385b.zip
tk-32dfbede133921ddb52e77da15090b48ca29385b.tar.gz
tk-32dfbede133921ddb52e77da15090b48ca29385b.tar.bz2
Don't use constants like DEF_BUTTON_UNDERLINE any more, since the default underline should always be no underline anyway.
Diffstat (limited to 'generic/tkMenubutton.c')
-rw-r--r--generic/tkMenubutton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkMenubutton.c b/generic/tkMenubutton.c
index 8d512c1..d046c84 100644
--- a/generic/tkMenubutton.c
+++ b/generic/tkMenubutton.c
@@ -146,8 +146,8 @@ static const Tk_OptionSpec optionSpecs[] = {
DEF_MENUBUTTON_TEXT_VARIABLE, TCL_INDEX_NONE,
offsetof(TkMenuButton, textVarName), TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_INDEX, "-underline", "underline", "Underline",
- DEF_BUTTON_UNDERLINE, TCL_INDEX_NONE, offsetof(TkMenuButton, underline),
- TK_OPTION_NULL_OK, 0, 0},
+ NULL, TCL_INDEX_NONE, offsetof(TkMenuButton, underline),
+ TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_STRING, "-width", "width", "Width",
DEF_MENUBUTTON_WIDTH, TCL_INDEX_NONE, offsetof(TkMenuButton, widthString),
0, 0, 0},