diff options
author | hobbs <hobbs> | 2003-11-12 00:04:53 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-11-12 00:04:53 (GMT) |
commit | 54390c886609675a8d08f9f587d991ca5dadb135 (patch) | |
tree | 8a248b584ba4e71c8ba6f79a83110d5bdd00de19 /generic/tkMenuDraw.c | |
parent | 4a669a53a213a511a8a5da1bc739833eeec595f3 (diff) | |
download | tk-54390c886609675a8d08f9f587d991ca5dadb135.zip tk-54390c886609675a8d08f9f587d991ca5dadb135.tar.gz tk-54390c886609675a8d08f9f587d991ca5dadb135.tar.bz2 |
* generic/tkMenuDraw.c (TkPostSubmenu): add {} around menu name in
case it has spaces when calling Tcl_VarEval. This is a hack until
this is rewritten for proper Tcl_Obj handling. [Bug #723856]
Diffstat (limited to 'generic/tkMenuDraw.c')
-rw-r--r-- | generic/tkMenuDraw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkMenuDraw.c b/generic/tkMenuDraw.c index ee1e89e..2df7a6d 100644 --- a/generic/tkMenuDraw.c +++ b/generic/tkMenuDraw.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMenuDraw.c,v 1.3.20.1 2003/07/15 13:59:06 vincentdarley Exp $ + * RCS: @(#) $Id: tkMenuDraw.c,v 1.3.20.2 2003/11/12 00:04:53 hobbs Exp $ */ #include "tkMenu.h" @@ -986,7 +986,7 @@ TkPostSubmenu(interp, menuPtr, mePtr) */ TkEventuallyRedrawMenu(menuPtr, (TkMenuEntry *) NULL); - result = Tcl_VarEval(interp, name, " unpost", (char *) NULL); + result = Tcl_VarEval(interp, "{", name, "} unpost", (char *) NULL); menuPtr->postedCascade = NULL; if (result != TCL_OK) { return result; @@ -1009,7 +1009,7 @@ TkPostSubmenu(interp, menuPtr, mePtr) name = Tcl_GetStringFromObj(mePtr->namePtr, NULL); Tk_GetRootCoords(menuPtr->tkwin, &x, &y); AdjustMenuCoords(menuPtr, mePtr, &x, &y, string); - result = Tcl_VarEval(interp, name, " post ", string, (char *) NULL); + result = Tcl_VarEval(interp, "{", name, "} post ", string, (char *) NULL); if (result != TCL_OK) { return result; } |