diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-03 09:48:39 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-03 09:48:39 (GMT) |
commit | 860ffe5f9af35a0d54fef347d3aacb8b3585800a (patch) | |
tree | 6d7910a1938039f4d352d3bf82c402abcc91532e /generic/tkMenu.c | |
parent | 06420ba2fed328cf5559b51d715c8554ff00c69c (diff) | |
download | tk-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.c | 2 |
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} }; |