Skip to content

Commit

Permalink
Merge 8.7. More indent fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Sep 29, 2024
2 parents 5fa0db9 + 575910a commit b78d24b
Show file tree
Hide file tree
Showing 79 changed files with 3,121 additions and 3,118 deletions.
3 changes: 3 additions & 0 deletions generic/tkCanvas.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ Tk_CanvasObjCmd(
canvasPtr->confine = 0;
canvasPtr->textInfo.selBorder = NULL;
canvasPtr->textInfo.selBorderWidth = 0;
canvasPtr->textInfo.reserved3 = NULL;
canvasPtr->textInfo.selFgColorPtr = NULL;
canvasPtr->textInfo.selItemPtr = NULL;
canvasPtr->textInfo.selectFirst = TCL_INDEX_NONE;
Expand All @@ -699,7 +700,9 @@ Tk_CanvasObjCmd(
canvasPtr->textInfo.selectAnchor = 0;
canvasPtr->textInfo.insertBorder = NULL;
canvasPtr->textInfo.insertWidth = 0;
canvasPtr->textInfo.reserved2 = NULL;
canvasPtr->textInfo.insertBorderWidth = 0;
canvasPtr->textInfo.reserved1 = NULL;
canvasPtr->textInfo.focusItemPtr = NULL;
canvasPtr->textInfo.gotFocus = 0;
canvasPtr->textInfo.cursorOn = 0;
Expand Down
2 changes: 1 addition & 1 deletion generic/tkMenubutton.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ typedef struct {
Tk_Cursor cursor; /* Current cursor for window, or NULL. */
Tcl_Obj *takeFocusObj; /* Value of -takefocus option; not used in the
* C code, but used by keyboard traversal
* scripts. Malloc'ed, but may be NULL. */
* scripts. May be NULL. */
int flags; /* Various flags; see below for
* definitions. */
#ifdef BUILD_tk
Expand Down
2 changes: 1 addition & 1 deletion library/bgerror.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace eval ::tk::dialog::error {
option add *ErrorDialog*background systemAlertBackgroundActive \
widgetDefault
option add *ErrorDialog*info.text.background \
systemTextBackgroundColor widgetDefault
systemTextBackgroundColor widgetDefault
option add *ErrorDialog*Button.highlightBackground \
systemAlertBackgroundActive widgetDefault
}
Expand Down
36 changes: 18 additions & 18 deletions library/demos/images/Tcl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 15 additions & 15 deletions library/demos/knightstour.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ proc Next {square} {
if {[lsearch -exact -integer $visited $testSquare] < 0} {
set count [CheckSquare $testSquare]
if {$count < $minimum} {
set minimum $count
set nextSquare $testSquare
set minimum $count
set nextSquare $testSquare
} elseif {$count == $minimum} {
# to remove the enhancement to Warnsdorff's rule
# remove the next line:
set nextSquare [Edgemost $nextSquare $testSquare]
# to remove the enhancement to Warnsdorff's rule
# remove the next line:
set nextSquare [Edgemost $nextSquare $testSquare]
}
}
}
Expand Down Expand Up @@ -104,13 +104,13 @@ proc MovePiece {dlg last square} {
if {[llength $visited] == 64} {
variable initial
if {$initial == $square} {
$dlg.f.txt insert end "Closed tour!"
$dlg.f.txt insert end "Closed tour!"
} else {
$dlg.f.txt insert end "Success"
if {$continuous} {
after [expr {$delay * 2}] [namespace code \
[list Tour $dlg [expr {int(rand() * 64)}]]]
}
$dlg.f.txt insert end "Success"
if {$continuous} {
after [expr {$delay * 2}] [namespace code \
[list Tour $dlg [expr {int(rand() * 64)}]]]
}
}
} else {
$dlg.f.txt insert end "FAILED!"
Expand Down Expand Up @@ -195,16 +195,16 @@ proc CreateGUI {} {
for {set row 7} {$row >= 0} {incr row -1} {
for {set col 0} {$col < 8} {incr col} {
if {(($col & 1) ^ ($row & 1))} {
set fill tan3 ; set dfill tan4
set fill tan3 ; set dfill tan4
} else {
set fill bisque ; set dfill bisque3
set fill bisque ; set dfill bisque3
}
set coords [list [expr {$col * 24 + 3}]p \
[expr {$row * 24 + 3}]p \
[expr {$col * 24 + 24}]p \
[expr {$col * 24 + 24}]p \
[expr {$row * 24 + 24}]p]
$c create rectangle $coords -fill $fill -disabledfill $dfill \
-width 1.5p -state disabled -outline black
-width 1.5p -state disabled -outline black
}
}
if {[tk windowingsystem] ne "x11"} {
Expand Down
Loading

0 comments on commit b78d24b

Please sign in to comment.