Skip to content

Commit 5d70167

Browse files
committed
merge trunk
2 parents 4f446f7 + b64c7f0 commit 5d70167

File tree

10 files changed

+25
-23
lines changed

10 files changed

+25
-23
lines changed

.github/workflows/linux-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@v4
3737
with:
3838
path: tk
39-
- name: Checkout Tcl 8.6
39+
- name: Checkout Tcl 9.0
4040
uses: actions/checkout@v4
4141
with:
4242
repository: tcltk/tcl
@@ -140,7 +140,7 @@ jobs:
140140
uses: actions/checkout@v4
141141
with:
142142
path: tk
143-
- name: Checkout Tcl
143+
- name: Checkout Tcl 9.0
144144
uses: actions/checkout@v4
145145
with:
146146
repository: tcltk/tcl

.github/workflows/linux-with-tcl8-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/checkout@v4
3636
with:
3737
path: tk
38-
- name: Checkout Tcl
38+
- name: Checkout Tcl 8.7
3939
uses: actions/checkout@v4
4040
with:
4141
repository: tcltk/tcl
@@ -120,7 +120,7 @@ jobs:
120120
uses: actions/checkout@v4
121121
with:
122122
path: tk
123-
- name: Checkout Tcl
123+
- name: Checkout Tcl 8.7
124124
uses: actions/checkout@v4
125125
with:
126126
repository: tcltk/tcl

.github/workflows/linux-with-tcl91-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@v4
3737
with:
3838
path: tk
39-
- name: Checkout Tcl
39+
- name: Checkout Tcl 9.1
4040
uses: actions/checkout@v4
4141
with:
4242
repository: tcltk/tcl
@@ -121,7 +121,7 @@ jobs:
121121
uses: actions/checkout@v4
122122
with:
123123
path: tk
124-
- name: Checkout Tcl
124+
- name: Checkout Tcl 9.1
125125
uses: actions/checkout@v4
126126
with:
127127
repository: tcltk/tcl

doc/wish.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.SH NAME
1313
wish \- Simple windowing shell
1414
.SH SYNOPSIS
15-
\fBwish\fR ?\fB\-encoding \fIname\fR? ?\fIfileName arg ...\fR?
15+
\fBwish\fR ?\fBoptions\fR? ?\fIfileName arg ...\fR?
1616
.SH OPTIONS
1717
.\" OPTION: -encoding
1818
.IP "\fB\-encoding \fIname\fR" 20

generic/tkWindow.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,9 @@ TkCreateMainWindow(
10241024
#ifndef TCL_CFG_OPTIMIZED
10251025
".no-optimize"
10261026
#endif
1027+
#if !defined(_WIN32) && !defined(MAC_OSX_TK) && !defined(HAVE_XFT)
1028+
".no-xft"
1029+
#endif
10271030
#ifdef __OBJC__
10281031
".objective-c"
10291032
#if defined(__cplusplus)
@@ -1045,9 +1048,6 @@ TkCreateMainWindow(
10451048
#endif
10461049
#if !defined(_WIN32) && !defined(MAC_OSX_TK)
10471050
".x11"
1048-
#if !defined(HAVE_XFT)
1049-
".no-xft"
1050-
#endif
10511051
#endif
10521052
;
10531053
#if TCL_MAJOR_VERSION > 8

generic/ttk/ttkElements.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,12 +1445,14 @@ static void SliderElementDraw(
14451445
case TTK_ORIENT_HORIZONTAL:
14461446
XFillRectangle(disp, d, gc,
14471447
mainInfoPtr->troughInnerX, mainInfoPtr->troughInnerY,
1448-
b.x + dim/2 - 1, mainInfoPtr->troughInnerHeight);
1448+
b.x + dim/2 - mainInfoPtr->troughInnerX,
1449+
mainInfoPtr->troughInnerHeight);
14491450
break;
14501451
case TTK_ORIENT_VERTICAL:
14511452
XFillRectangle(disp, d, gc,
14521453
mainInfoPtr->troughInnerX, mainInfoPtr->troughInnerY,
1453-
mainInfoPtr->troughInnerWidth, b.y + dim/2 - 1);
1454+
mainInfoPtr->troughInnerWidth,
1455+
b.y + dim/2 - mainInfoPtr->troughInnerY);
14541456
break;
14551457
}
14561458
}

tests/constraints.tcl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,21 +246,21 @@ namespace eval tk {
246246
# got moved to the requested location should use a y coordinate larger than the
247247
# height of the menubar (normally 23 pixels) and an x coordinate larger than the
248248
# width of the dock, if it happens to be on the left.
249-
# menubarheight deals with this issue but may not be available from the test
249+
# testmenubarheight deals with this issue but may not be available from the test
250250
# environment, therefore provide a fallback here
251-
if {[llength [info procs menubarheight]] == 0} {
251+
if {[llength [info procs testmenubarheight]] == 0} {
252252
if {[tk windowingsystem] ne "aqua"} {
253253
# Windows may overlap the menubar
254-
proc menubarheight {} {
254+
proc testmenubarheight {} {
255255
return 0
256256
}
257257
} else {
258258
# Windows may not overlap the menubar
259-
proc menubarheight {} {
259+
proc testmenubarheight {} {
260260
return 30 ; # arbitrary value known to be larger than the menubar height
261261
}
262262
}
263-
namespace export menubarheight
263+
namespace export testmenubarheight
264264
}
265265
}
266266
}

tests/font.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,9 +938,9 @@ test font-21.6 {Tk_PostscriptFontName procedure: spaces} -constraints {
938938
} -body {
939939
set name {{new century schoolbook} 10}
940940
if {[font actual {{new century schoolbook} 10} -family] == "new century schoolbook"} {
941-
set x [psfontname "{new century schoolbook} 10"]
941+
set x [psfontname "{new century schoolbook} 10"]
942942
} else {
943-
set x NewCenturySchlbk-Roman
943+
set x NewCenturySchlbk-Roman
944944
}
945945
} -result {NewCenturySchlbk-Roman}
946946
test font-21.7 {Tk_PostscriptFontName procedure: exhaustive} -constraints {

tests/unixFont.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ tcltest::loadTestedCommands
1818

1919
if {[tk windowingsystem] eq "x11"} {
2020
if {[testConstraint withXft]} {
21-
set fontsystemcmd [auto_execok fc-list]
21+
set fontsystemcmd [auto_execok fc-list]
2222
} else {
23-
set fontsystemcmd [auto_execok xlsfonts]
23+
set fontsystemcmd [auto_execok xlsfonts]
2424
}
2525
}
2626
foreach {constraint font} {

unix/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ INSTALL_DOC_TARGETS = install-doc
776776
INSTALL_DEV_TARGETS = install-headers
777777
INSTALL_DEMO_TARGETS = install-demos
778778
INSTALL_EXTRA_TARGETS = @EXTRA_INSTALL@
779-
INSTALL_TARGETS = $(INSTALL_BASE_TARGETS) $(INSTALL_DOC_TARGETS) $(INSTALL_DEV_TARGETS) \
780-
$(INSTALL_DEMO_TARGETS) $(INSTALL_EXTRA_TARGETS)
779+
INSTALL_TARGETS = $(INSTALL_BASE_TARGETS) $(INSTALL_DEV_TARGETS) \
780+
$(INSTALL_DEMO_TARGETS) $(INSTALL_DOC_TARGETS) $(INSTALL_EXTRA_TARGETS)
781781

782782
install: $(INSTALL_TARGETS)
783783

0 commit comments

Comments
 (0)