summaryrefslogtreecommitdiffstats
path: root/generic/tkMenu.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-03 09:48:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-03 09:48:39 (GMT)
commit860ffe5f9af35a0d54fef347d3aacb8b3585800a (patch)
tree6d7910a1938039f4d352d3bf82c402abcc91532e /generic/tkMenu.c
parent06420ba2fed328cf5559b51d715c8554ff00c69c (diff)
downloadtk-860ffe5f9af35a0d54fef347d3aacb8b3585800a.zip
tk-860ffe5f9af35a0d54fef347d3aacb8b3585800a.tar.gz
tk-860ffe5f9af35a0d54fef347d3aacb8b3585800a.tar.bz2
New macro TK_OPTION_UNDERLINE_DEF, which simplifies the default handling for "-underline" options.
Diffstat (limited to 'generic/tkMenu.c')
-rw-r--r--generic/tkMenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index a7e6363..da5815f 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.c
@@ -161,7 +161,7 @@ static const Tk_OptionSpec tkBasicMenuEntryConfigSpecs[] = {
TCL_INDEX_NONE, offsetof(TkMenuEntry, state), 0,
(ClientData) menuStateStrings, 0},
{TK_OPTION_INT, "-underline", NULL, NULL,
- DEF_MENU_ENTRY_UNDERLINE, TCL_INDEX_NONE, offsetof(TkMenuEntry, underline), 0, NULL, 0},
+ TK_OPTION_UNDERLINE_DEF(TkMenuEntry, underline), 0},
{TK_OPTION_END, NULL, NULL, NULL, 0, 0, 0, 0, NULL, 0}
};