summaryrefslogtreecommitdiffstats
path: root/generic/tkMenu.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-26 17:06:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-26 17:06:05 (GMT)
commit8253b14dec0532976665ce9fbddcc166db24af0f (patch)
treee361ce656445900511b5c933dbf948cc7055d5ae /generic/tkMenu.c
parente32ce30cb1c859429ad8bd32daa6a168ab60102b (diff)
downloadtk-8253b14dec0532976665ce9fbddcc166db24af0f.zip
tk-8253b14dec0532976665ce9fbddcc166db24af0f.tar.gz
tk-8253b14dec0532976665ce9fbddcc166db24af0f.tar.bz2
Put back "none" as possible index value for Tk > 8
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 477a99b..d3551f9 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.c
@@ -2186,7 +2186,7 @@ GetMenuIndex(
*indexPtr = TCL_INDEX_NONE;
return TCL_OK;
}
-#if !defined(TK_NO_DEPRECATED) && TK_MAJOR_VERSION < 9
+#if !defined(TK_NO_DEPRECATED)
if ((string[0] == 'n') && (strcmp(string, "none") == 0)) {
*indexPtr = TCL_INDEX_NONE;
return TCL_OK;