summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r--macosx/tkMacOSXWm.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index fbea56b..2b3b780 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -1620,7 +1620,7 @@ WmAspectCmd(
if ((numer1 <= 0) || (denom1 <= 0) || (numer2 <= 0) ||
(denom2 <= 0)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
- "aspect number can't be <= 0", TCL_INDEX_NONE));
+ "aspect number cannot be <= 0", TCL_INDEX_NONE));
Tcl_SetErrorCode(interp, "TK", "WM", "ASPECT", NULL);
return TCL_ERROR;
}
@@ -2433,13 +2433,13 @@ WmDeiconifyCmd(
}
if (wmPtr->iconFor != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't deiconify %s: it is an icon for %s",
+ "cannot deiconify %s: it is an icon for %s",
Tcl_GetString(objv[2]), Tk_PathName(wmPtr->iconFor)));
Tcl_SetErrorCode(interp, "TK", "WM", "DEICONIFY", "ICON", NULL);
return TCL_ERROR;
} else if (winPtr->flags & TK_EMBEDDED) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't deiconify %s: it is an embedded window",
+ "cannot deiconify %s: it is an embedded window",
winPtr->pathName));
Tcl_SetErrorCode(interp, "TK", "WM", "DEICONIFY", "EMBEDDED", NULL);
return TCL_ERROR;
@@ -2787,16 +2787,16 @@ WmGridCmd(
return TCL_ERROR;
}
if (reqWidth < 0) {
- errorMsg = "baseWidth can't be < 0";
+ errorMsg = "baseWidth cannot be < 0";
goto error;
} else if (reqHeight < 0) {
- errorMsg = "baseHeight can't be < 0";
+ errorMsg = "baseHeight cannot be < 0";
goto error;
} else if (widthInc <= 0) {
- errorMsg = "widthInc can't be <= 0";
+ errorMsg = "widthInc cannot be <= 0";
goto error;
} else if (heightInc <= 0) {
- errorMsg = "heightInc can't be <= 0";
+ errorMsg = "heightInc cannot be <= 0";
goto error;
}
Tk_SetGrid((Tk_Window)winPtr, reqWidth, reqHeight, widthInc,
@@ -2920,7 +2920,7 @@ WmIconbadgeCmd(
if ([label containsString:@"."]) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't use \"%s\" as icon badge", Tcl_GetString(objv[3])));
+ "cannot use \"%s\" as icon badge", Tcl_GetString(objv[3])));
return TCL_ERROR;
}
@@ -2938,7 +2938,7 @@ WmIconbadgeCmd(
[dockicon setBadgeLabel:str];
} else {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't use \"%s\" as icon badge", Tcl_GetString(objv[3])));
+ "cannot use \"%s\" as icon badge", Tcl_GetString(objv[3])));
return TCL_ERROR;
}
return TCL_OK;
@@ -3046,25 +3046,25 @@ WmIconifyCmd(
if (Tk_Attributes((Tk_Window)winPtr)->override_redirect) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't iconify \"%s\": override-redirect flag is set",
+ "cannot iconify \"%s\": override-redirect flag is set",
winPtr->pathName));
Tcl_SetErrorCode(interp, "TK", "WM", "ICONIFY", "OVERRIDE_REDIRECT",
NULL);
return TCL_ERROR;
} else if (wmPtr->container != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't iconify \"%s\": it is a transient", winPtr->pathName));
+ "cannot iconify \"%s\": it is a transient", winPtr->pathName));
Tcl_SetErrorCode(interp, "TK", "WM", "ICONIFY", "TRANSIENT", NULL);
return TCL_ERROR;
} else if (wmPtr->iconFor != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't iconify \"%s\": it is an icon for \"%s\"",
+ "cannot iconify \"%s\": it is an icon for \"%s\"",
winPtr->pathName, Tk_PathName(wmPtr->iconFor)));
Tcl_SetErrorCode(interp, "TK", "WM", "ICONIFY", "ICON", NULL);
return TCL_ERROR;
} else if (winPtr->flags & TK_EMBEDDED) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't iconify \"%s\": it is an embedded window",
+ "cannot iconify \"%s\": it is an embedded window",
winPtr->pathName));
Tcl_SetErrorCode(interp, "TK", "WM", "ICONIFY", "EMBEDDED", NULL);
return TCL_ERROR;
@@ -3273,7 +3273,7 @@ WmIconphotoCmd(
tk_icon = Tk_GetImage(interp, tkwin, icon, NULL, NULL);
if (tk_icon == NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't use \"%s\" as iconphoto: not a photo image",
+ "cannot use \"%s\" as iconphoto: not a photo image",
icon));
Tcl_SetErrorCode(interp, "TK", "WM", "ICONPHOTO", "PHOTO", NULL);
return TCL_ERROR;
@@ -3408,7 +3408,7 @@ WmIconwindowCmd(
}
if (!Tk_IsTopLevel(tkwin2)) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't use %s as icon window: not at top level",
+ "cannot use %s as icon window: not at top level",
Tk_PathName(tkwin2)));
Tcl_SetErrorCode(interp, "TK", "WM", "ICONWINDOW", "TOPLEVEL",
NULL);
@@ -4183,14 +4183,14 @@ WmStateCmd(
if (objc == 4) {
if (wmPtr->iconFor != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't change state of \"%s\": it is an icon for \"%s\"",
+ "cannot change state of \"%s\": it is an icon for \"%s\"",
Tcl_GetString(objv[2]), Tk_PathName(wmPtr->iconFor)));
Tcl_SetErrorCode(interp, "TK", "WM", "STATE", "ICON", NULL);
return TCL_ERROR;
}
if (winPtr->flags & TK_EMBEDDED) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't change state of \"%s\": it is an embedded window",
+ "cannot change state of \"%s\": it is an embedded window",
winPtr->pathName));
Tcl_SetErrorCode(interp, "TK", "WM", "STATE", "EMBEDDED", NULL);
return TCL_ERROR;
@@ -4214,7 +4214,7 @@ WmStateCmd(
case OPT_ICONIC:
if (Tk_Attributes((Tk_Window)winPtr)->override_redirect) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't iconify \"%s\": override-redirect flag is set",
+ "cannot iconify \"%s\": override-redirect flag is set",
winPtr->pathName));
Tcl_SetErrorCode(interp, "TK", "WM", "STATE",
"OVERRIDE_REDIRECT", NULL);
@@ -4222,7 +4222,7 @@ WmStateCmd(
}
if (wmPtr->container != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't iconify \"%s\": it is a transient",
+ "cannot iconify \"%s\": it is a transient",
winPtr->pathName));
Tcl_SetErrorCode(interp, "TK", "WM", "STATE", "TRANSIENT",
NULL);
@@ -4372,7 +4372,7 @@ WmTransientCmd(
if (wmPtr->iconFor != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't make \"%s\" a transient: it is an icon for %s",
+ "cannot make \"%s\" a transient: it is an icon for %s",
Tcl_GetString(objv[2]), Tk_PathName(wmPtr->iconFor)));
Tcl_SetErrorCode(interp, "TK", "WM", "TRANSIENT", "ICON", NULL);
return TCL_ERROR;
@@ -4386,7 +4386,7 @@ WmTransientCmd(
if (wmPtr2 != NULL && wmPtr2->iconFor != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't make \"%s\" a container: it is an icon for %s",
+ "cannot make \"%s\" a container: it is an icon for %s",
Tcl_GetString(objv[3]), Tk_PathName(wmPtr2->iconFor)));
Tcl_SetErrorCode(interp, "TK", "WM", "TRANSIENT", "ICON", NULL);
return TCL_ERROR;
@@ -4396,7 +4396,7 @@ WmTransientCmd(
w = (TkWindow *)w->wmInfoPtr->container) {
if (w == winPtr) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't set \"%s\" as container: would cause management loop",
+ "cannot set \"%s\" as container: would cause management loop",
Tk_PathName(containerPtr)));
Tcl_SetErrorCode(interp, "TK", "WM", "TRANSIENT", "SELF", NULL);
return TCL_ERROR;
@@ -4526,7 +4526,7 @@ WmWithdrawCmd(
if (wmPtr->iconFor != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't withdraw %s: it is an icon for %s",
+ "cannot withdraw %s: it is an icon for %s",
Tcl_GetString(objv[2]), Tk_PathName(wmPtr->iconFor)));
Tcl_SetErrorCode(interp, "TK", "WM", "WITHDRAW", "ICON", NULL);
return TCL_ERROR;