summaryrefslogtreecommitdiffstats
path: root/generic/tkFont.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
commit0d5336db012f45753abace489f18f0ca299c6961 (patch)
treeb1bf3280a9046df99226158978502eeb26f5b0a3 /generic/tkFont.c
parente97381a6d921de403516d5b761539a450f4af83c (diff)
parent1320b8a2a9c1269a345d44d673a7a35707fbbe9c (diff)
downloadtk-core-tip-626.zip
tk-core-tip-626.tar.gz
tk-core-tip-626.tar.bz2
Merge 9.0core-tip-626
Diffstat (limited to 'generic/tkFont.c')
-rw-r--r--generic/tkFont.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c
index 6c47150..ab080e1 100644
--- a/generic/tkFont.c
+++ b/generic/tkFont.c
@@ -634,7 +634,7 @@ Tk_FontObjCmd(
}
if ((namedHashPtr == NULL) || nfPtr->deletePending) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "named font \"%s\" doesn't exist", string));
+ "named font \"%s\" does not exist", string));
Tcl_SetErrorCode(interp, "TK", "LOOKUP", "FONT", string, NULL);
return TCL_ERROR;
}
@@ -890,17 +890,6 @@ TheWorldHasChanged(
{
TkFontInfo *fiPtr = (TkFontInfo *)clientData;
- /*
- * On macOS it is catastrophic to recompute all widgets while the
- * [NSView drawRect] method is drawing. The best that we can do in
- * that situation is to abort the recomputation and hope for the best.
- * This is ignored on other platforms.
- */
-
- if (TkpWillDrawWidget(NULL)) {
- return;
- }
-
fiPtr->updatePending = 0;
RecomputeWidgets(fiPtr->mainPtr->winPtr);
}
@@ -1042,7 +1031,7 @@ TkDeleteNamedFont(
if (namedHashPtr == NULL) {
if (interp) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "named font \"%s\" doesn't exist", name));
+ "named font \"%s\" does not exist", name));
Tcl_SetErrorCode(interp, "TK", "LOOKUP", "FONT", name, NULL);
}
return TCL_ERROR;
@@ -3218,8 +3207,8 @@ TkIntersectAngledTextLayout(
PointInQuadrilateral(cx, cy, rx[1], ry[1]) &&
PointInQuadrilateral(cx, cy, rx[2], ry[2]) &&
PointInQuadrilateral(cx, cy, rx[3], ry[3])) {
- return 0;
- }
+ return 0;
+ }
}
/*
@@ -3757,7 +3746,7 @@ ParseFontNameObj(
|| (objc < 1)) {
if (interp != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "font \"%s\" doesn't exist", string));
+ "font \"%s\" does not exist", string));
Tcl_SetErrorCode(interp, "TK", "LOOKUP", "FONT", string, NULL);
}
return TCL_ERROR;