diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-12-14 15:45:40 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-12-14 15:45:40 (GMT) |
commit | 8a728ef419e042429b94d2fb3293abe307cb0809 (patch) | |
tree | 0cc26907068c12f75c3c1f78d20dd9c1cd05bbcf /generic/tkGet.c | |
parent | d761ee11ddfbf78f99ff1cf29011f5c899983250 (diff) | |
parent | 5357570e1f8319ecea3ce3c930913200ebc485dd (diff) | |
download | tk-8a728ef419e042429b94d2fb3293abe307cb0809.zip tk-8a728ef419e042429b94d2fb3293abe307cb0809.tar.gz tk-8a728ef419e042429b94d2fb3293abe307cb0809.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/tkGet.c')
-rw-r--r-- | generic/tkGet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkGet.c b/generic/tkGet.c index 8d77786..68d8c75 100644 --- a/generic/tkGet.c +++ b/generic/tkGet.c @@ -35,7 +35,7 @@ static void FreeUidThreadExitProc(ClientData clientData); * used by Tk_GetAnchorFromObj and Tk_GetJustifyFromObj. */ -static const char *const anchorStrings[] = { +const char *const tkAnchorStrings[] = { "n", "ne", "e", "se", "s", "sw", "w", "nw", "center", NULL }; const char *const tkJustifyStrings[] = { @@ -71,7 +71,7 @@ Tk_GetAnchorFromObj( { int index, code; - code = Tcl_GetIndexFromObj(interp, objPtr, anchorStrings, "anchor", 0, + code = Tcl_GetIndexFromObj(interp, objPtr, tkAnchorStrings, "anchor", 0, &index); if (code == TCL_OK) { *anchorPtr = (Tk_Anchor) index; @@ -190,6 +190,7 @@ Tk_NameOfAnchor( case TK_ANCHOR_W: return "w"; case TK_ANCHOR_NW: return "nw"; case TK_ANCHOR_CENTER: return "center"; + case TK_ANCHOR_NULL: return ""; } return "unknown anchor position"; } |