summaryrefslogtreecommitdiffstats
path: root/unix
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 /unix
parent21c7efa254e5c4c6e5a552410771994a2c18197c (diff)
downloadtk-4240bad9540eb94ede3be8055f42064d2f4a6f88.zip
tk-4240bad9540eb94ede3be8055f42064d2f4a6f88.tar.gz
tk-4240bad9540eb94ede3be8055f42064d2f4a6f88.tar.bz2
Don't use "boolean" as variable name
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixWm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c
index 7526e3a..0424218 100644
--- a/unix/tkUnixWm.c
+++ b/unix/tkUnixWm.c
@@ -2929,7 +2929,7 @@ WmOverrideredirectCmd(
Tcl_Size objc, /* Number of arguments. */
Tcl_Obj *const objv[]) /* Argument objects. */
{
- int boolean, curValue;
+ Bool boolValue, curValue;
XSetWindowAttributes atts;
if ((objc != 3) && (objc != 4)) {
@@ -2941,16 +2941,16 @@ 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) {
/*
* 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 (winPtr->wmInfoPtr->wrapperPtr != NULL) {