summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-27 16:16:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-27 16:16:24 (GMT)
commit4240bad9540eb94ede3be8055f42064d2f4a6f88 (patch)
tree90a84871c78381538f0bfe3868efd4b4a1122565 /win/tkWinWm.c
parent21c7efa254e5c4c6e5a552410771994a2c18197c (diff)
downloadtk-4240bad9540eb94ede3be8055f42064d2f4a6f88.zip
tk-4240bad9540eb94ede3be8055f42064d2f4a6f88.tar.gz
tk-4240bad9540eb94ede3be8055f42064d2f4a6f88.tar.bz2
Don't use "boolean" as variable name
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r--win/tkWinWm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 16072d7..5c42ee5 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -2914,7 +2914,7 @@ WmAttributesCmd(
WmInfo *wmPtr = winPtr->wmInfoPtr;
LONG style, exStyle, styleBit, *stylePtr = NULL;
const char *string;
- int boolean;
+ Bool boolValue;
Tcl_Size i, length;
int config_fullscreen = 0, updatewrapper = 0;
int fullscreen_attr_changed = 0, fullscreen_attr = 0;
@@ -3090,7 +3090,7 @@ WmAttributesCmd(
}
} else {
if ((i < objc-1)
- && Tcl_GetBooleanFromObj(interp, objv[i+1], &boolean)
+ && Tcl_GetBooleanFromObj(interp, objv[i+1], &boolValue)
!= TCL_OK) {
return TCL_ERROR;
}
@@ -3100,13 +3100,13 @@ WmAttributesCmd(
(wmPtr->flags & WM_FULLSCREEN) != 0));
} else {
fullscreen_attr_changed = 1;
- fullscreen_attr = boolean;
+ fullscreen_attr = boolValue;
}
config_fullscreen = 0;
} else if (objc == 4) {
Tcl_SetObjResult(interp,
Tcl_NewWideIntObj((*stylePtr & styleBit) != 0));
- } else if (boolean) {
+ } else if (boolValue) {
*stylePtr |= styleBit;
} else {
*stylePtr &= ~styleBit;
@@ -4733,7 +4733,7 @@ WmOverrideredirectCmd(
Tcl_Obj *const objv[]) /* Argument objects. */
{
WmInfo *wmPtr = winPtr->wmInfoPtr;
- int boolean, curValue;
+ Bool boolValue, curValue;
XSetWindowAttributes atts;
if ((objc != 3) && (objc != 4)) {
@@ -4755,19 +4755,19 @@ WmOverrideredirectCmd(
Tcl_SetObjResult(interp, Tcl_NewWideIntObj(curValue != 0));
return TCL_OK;
}
- if (Tcl_GetBooleanFromObj(interp, objv[3], &boolean) != TCL_OK) {
+ if (Tcl_GetBooleanFromObj(interp, objv[3], &boolValue) != TCL_OK) {
return TCL_ERROR;
}
- if (curValue != boolean) {
+ if (curValue != boolValue) {
if (winPtr->flags & TK_EMBEDDED) {
- SendMessageW(wmPtr->wrapper, TK_OVERRIDEREDIRECT, boolean, 0);
+ SendMessageW(wmPtr->wrapper, TK_OVERRIDEREDIRECT, boolValue, 0);
} else {
/*
* Only do this if we are really changing value, because it causes
* some funky stuff to occur.
*/
- atts.override_redirect = (boolean) ? True : False;
+ atts.override_redirect = boolValue;
Tk_ChangeWindowAttributes((Tk_Window) winPtr, CWOverrideRedirect,
&atts);
if (!(wmPtr->flags & (WM_NEVER_MAPPED))