summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-29 14:45:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-29 14:45:46 (GMT)
commite184e0fa051c3ec3847b9967a7325b147bc4d0fe (patch)
treecb0840631cb88779b2ab20763460d9696cd2b62e
parent20861a65f1bf91a3a1f84b597318e96cb62f253c (diff)
parentefb0baaed5df995abbbc5210bf0d3ea8d6bf5120 (diff)
downloadtk-e184e0fa051c3ec3847b9967a7325b147bc4d0fe.zip
tk-e184e0fa051c3ec3847b9967a7325b147bc4d0fe.tar.gz
tk-e184e0fa051c3ec3847b9967a7325b147bc4d0fe.tar.bz2
Merge 8.7
-rw-r--r--generic/tkOldConfig.c4
-rw-r--r--macosx/tkMacOSXWm.c44
2 files changed, 24 insertions, 24 deletions
diff --git a/generic/tkOldConfig.c b/generic/tkOldConfig.c
index f0dbc94..9ca5a7a 100644
--- a/generic/tkOldConfig.c
+++ b/generic/tkOldConfig.c
@@ -719,7 +719,7 @@ FormatConfigInfo(
result = Tcl_Merge(5, argv);
if (freeProc != NULL) {
if (freeProc == TCL_DYNAMIC) {
- ckfree(argv[4]);
+ ckfree((char *)argv[4]);
} else {
freeProc((char *)argv[4]);
}
@@ -942,7 +942,7 @@ Tk_ConfigureValue(
Tcl_SetObjResult(interp, Tcl_NewStringObj(result, TCL_INDEX_NONE));
if (freeProc != NULL) {
if (freeProc == TCL_DYNAMIC) {
- ckfree(result);
+ ckfree((char *)result);
} else {
freeProc((char *)result);
}
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index a74b701..b874c4b 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -1624,7 +1624,7 @@ WmSetAttribute(
Tcl_Obj *value) /* New value */
{
WmInfo *wmPtr = winPtr->wmInfoPtr;
- int boolean;
+ int boolValue;
NSString *identifier;
switch (attribute) {
@@ -1700,10 +1700,10 @@ WmSetAttribute(
break;
}
case WMATT_FULLSCREEN:
- if (Tcl_GetBooleanFromObj(interp, value, &boolean) != TCL_OK) {
+ if (Tcl_GetBooleanFromObj(interp, value, &boolValue) != TCL_OK) {
return TCL_ERROR;
}
- if (boolean != (([macWindow styleMask] & NSFullScreenWindowMask) != 0)) {
+ if (boolValue != (([macWindow styleMask] & NSFullScreenWindowMask) != 0)) {
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
[macWindow toggleFullScreen:macWindow];
#else
@@ -1712,28 +1712,28 @@ WmSetAttribute(
}
break;
case WMATT_MODIFIED:
- if (Tcl_GetBooleanFromObj(interp, value, &boolean) != TCL_OK) {
+ if (Tcl_GetBooleanFromObj(interp, value, &boolValue) != TCL_OK) {
return TCL_ERROR;
}
- if (boolean != [macWindow isDocumentEdited]) {
- [macWindow setDocumentEdited:(BOOL)boolean];
+ if (boolValue != [macWindow isDocumentEdited]) {
+ [macWindow setDocumentEdited:(BOOL)boolValue];
}
break;
case WMATT_NOTIFY:
- if (Tcl_GetBooleanFromObj(interp, value, &boolean) != TCL_OK) {
+ if (Tcl_GetBooleanFromObj(interp, value, &boolValue) != TCL_OK) {
return TCL_ERROR;
}
- if (boolean == !tkMacOSXWmAttrNotifyVal) {
+ if (boolValue == !tkMacOSXWmAttrNotifyVal) {
static NSInteger request = -1;
if (request >= 0) {
[NSApp cancelUserAttentionRequest:request];
request = -1;
}
- if (boolean) {
+ if (boolValue) {
request = [NSApp requestUserAttention:NSCriticalRequest];
}
- tkMacOSXWmAttrNotifyVal = boolean;
+ tkMacOSXWmAttrNotifyVal = boolValue;
}
break;
case WMATT_STYLEMASK: {
@@ -1862,13 +1862,13 @@ WmSetAttribute(
break;
}
case WMATT_TOPMOST:
- if (Tcl_GetBooleanFromObj(interp, value, &boolean) != TCL_OK) {
+ if (Tcl_GetBooleanFromObj(interp, value, &boolValue) != TCL_OK) {
return TCL_ERROR;
}
- if (boolean != ((wmPtr->flags & WM_TOPMOST) != 0)) {
+ if (boolValue != ((wmPtr->flags & WM_TOPMOST) != 0)) {
int oldFlags = wmPtr->flags;
- if (boolean) {
+ if (boolValue) {
wmPtr->flags |= WM_TOPMOST;
} else {
wmPtr->flags &= ~WM_TOPMOST;
@@ -1878,14 +1878,14 @@ WmSetAttribute(
}
break;
case WMATT_TRANSPARENT:
- if (Tcl_GetBooleanFromObj(interp, value, &boolean) != TCL_OK) {
+ if (Tcl_GetBooleanFromObj(interp, value, &boolValue) != TCL_OK) {
return TCL_ERROR;
}
- if (boolean != ((wmPtr->flags & WM_TRANSPARENT) != 0)) {
+ if (boolValue != ((wmPtr->flags & WM_TRANSPARENT) != 0)) {
UInt64 oldAttributes = wmPtr->attributes;
int oldFlags = wmPtr->flags;
- if (boolean) {
+ if (boolValue) {
wmPtr->flags |= WM_TRANSPARENT;
wmPtr->attributes |= kWindowNoShadowAttribute;
} else {
@@ -1894,8 +1894,8 @@ WmSetAttribute(
}
ApplyWindowAttributeFlagChanges(winPtr, macWindow, oldAttributes,
oldFlags, 1, 0);
- [macWindow setBackgroundColor:boolean ? [NSColor clearColor] : nil];
- [macWindow setOpaque:!boolean];
+ [macWindow setBackgroundColor:boolValue ? [NSColor clearColor] : nil];
+ [macWindow setOpaque:!boolValue];
TkMacOSXInvalidateWindow((MacDrawable *)winPtr->window,
TK_PARENT_WINDOW);
}
@@ -3624,7 +3624,7 @@ WmOverrideredirectCmd(
Tcl_Size objc, /* Number of arguments. */
Tcl_Obj *const objv[]) /* Argument objects. */
{
- int flag;
+ Bool boolValue;
XSetWindowAttributes atts;
TKWindow *win = (TKWindow *)TkMacOSXGetNSWindowForDrawable(winPtr->window);
@@ -3639,13 +3639,13 @@ WmOverrideredirectCmd(
return TCL_OK;
}
- if (Tcl_GetBooleanFromObj(interp, objv[3], &flag) != TCL_OK) {
+ if (Tcl_GetBooleanFromObj(interp, objv[3], &boolValue) != TCL_OK) {
return TCL_ERROR;
}
- atts.override_redirect = flag ? True : False;
+ atts.override_redirect = boolValue;
Tk_ChangeWindowAttributes((Tk_Window)winPtr, CWOverrideRedirect, &atts);
if ([NSApp macOSVersion] >= 101300) {
- if (flag) {
+ if (boolValue) {
win.styleMask |= NSWindowStyleMaskDocModalWindow;
} else {
win.styleMask &= ~NSWindowStyleMaskDocModalWindow;