diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-05-12 22:01:40 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-05-12 22:01:40 (GMT) |
commit | dc847a1c2f0f52c7ba66b37b9cc7a3d4316726a7 (patch) | |
tree | 1d241304896401e48b0b0ccad98703678b0b3e0b /generic/tkMenubutton.c | |
parent | 4749967fe161376a673a9017b6c5faf1cfc8dea8 (diff) | |
download | tk-dc847a1c2f0f52c7ba66b37b9cc7a3d4316726a7.zip tk-dc847a1c2f0f52c7ba66b37b9cc7a3d4316726a7.tar.gz tk-dc847a1c2f0f52c7ba66b37b9cc7a3d4316726a7.tar.bz2 |
More alphabetizing Tk options. More type-cast improvements
Diffstat (limited to 'generic/tkMenubutton.c')
-rw-r--r-- | generic/tkMenubutton.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkMenubutton.c b/generic/tkMenubutton.c index 9a79bee..1843780 100644 --- a/generic/tkMenubutton.c +++ b/generic/tkMenubutton.c @@ -43,7 +43,7 @@ static const Tk_OptionSpec optionSpecs[] = { {TK_OPTION_BORDER, "-activebackground", "activeBackground", "Foreground", DEF_MENUBUTTON_ACTIVE_BG_COLOR, TCL_INDEX_NONE, offsetof(TkMenuButton, activeBorder), 0, - (ClientData) DEF_MENUBUTTON_ACTIVE_BG_MONO, 0}, + DEF_MENUBUTTON_ACTIVE_BG_MONO, 0}, {TK_OPTION_COLOR, "-activeforeground", "activeForeground", "Background", DEF_MENUBUTTON_ACTIVE_FG_COLOR, TCL_INDEX_NONE, offsetof(TkMenuButton, activeFg), @@ -73,7 +73,7 @@ static const Tk_OptionSpec optionSpecs[] = { {TK_OPTION_COLOR, "-disabledforeground", "disabledForeground", "DisabledForeground", DEF_MENUBUTTON_DISABLED_FG_COLOR, TCL_INDEX_NONE, offsetof(TkMenuButton, disabledFg), TK_OPTION_NULL_OK, - (ClientData) DEF_MENUBUTTON_DISABLED_FG_MONO, 0}, + DEF_MENUBUTTON_DISABLED_FG_MONO, 0}, {TK_OPTION_SYNONYM, "-fg", "foreground", NULL, NULL, 0, TCL_INDEX_NONE, 0, "-foreground", 0}, {TK_OPTION_FONT, "-font", "font", "Font", @@ -870,14 +870,14 @@ MenuButtonTextVarProc( if (flags & TCL_TRACE_UNSETS) { if (!Tcl_InterpDeleted(interp) && mbPtr->textVarName) { - ClientData probe = NULL; + void *probe = NULL; do { probe = Tcl_VarTraceInfo(interp, mbPtr->textVarName, TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS, MenuButtonTextVarProc, probe); - if (probe == (ClientData)mbPtr) { + if (probe == (void *)mbPtr) { break; } } while (probe); |