summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-09 13:10:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-09 13:10:37 (GMT)
commitb128022078d24422beb7a8ee7d94646af38e750e (patch)
tree3f59fe3616dec2e3a7c52ade4fc6fd287e92ce3b
parent66bf38184997aae41c04d04c179f46fd387dc4a1 (diff)
parentb68dac494c3cbaae6426ecc3bf9d94404fd3a43b (diff)
downloadtk-b128022078d24422beb7a8ee7d94646af38e750e.zip
tk-b128022078d24422beb7a8ee7d94646af38e750e.tar.gz
tk-b128022078d24422beb7a8ee7d94646af38e750e.tar.bz2
Rebase to latest trunk
-rw-r--r--.github/workflows/linux-build.yml5
-rw-r--r--.github/workflows/linux-with-tcl86-build.yml177
-rw-r--r--.github/workflows/linux-with-tcl87-build.yml (renamed from .github/workflows/linux-with-tcl9-build.yml)7
-rw-r--r--.github/workflows/linux-with-tcl91-build.yml1
-rw-r--r--.github/workflows/mac-build.yml9
-rw-r--r--.github/workflows/onefiledist.yml15
-rw-r--r--.github/workflows/win-build.yml9
-rw-r--r--.project2
-rw-r--r--.travis.yml1
-rw-r--r--README.md8
-rw-r--r--doc/ttk_panedwindow.n2
-rw-r--r--doc/ttk_scrollbar.n2
-rw-r--r--generic/tk.h31
-rw-r--r--generic/ttk/ttkClamTheme.c21
-rw-r--r--generic/ttk/ttkClassicTheme.c2
-rw-r--r--generic/ttk/ttkDefaultTheme.c2
-rw-r--r--library/tk.tcl2
-rw-r--r--library/ttk/clamTheme.tcl6
-rw-r--r--unix/Makefile.in2
-rwxr-xr-xunix/configure49
-rw-r--r--unix/configure.ac27
-rw-r--r--unix/tcl.m412
-rw-r--r--unix/tk.spec6
-rw-r--r--win/README2
-rwxr-xr-xwin/configure43
-rw-r--r--win/configure.ac27
-rw-r--r--win/rules.vc4
-rw-r--r--win/tcl.m48
28 files changed, 127 insertions, 355 deletions
diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml
index 15273de..7a39e2f 100644
--- a/.github/workflows/linux-build.yml
+++ b/.github/workflows/linux-build.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -38,7 +39,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
@@ -142,7 +143,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
diff --git a/.github/workflows/linux-with-tcl86-build.yml b/.github/workflows/linux-with-tcl86-build.yml
deleted file mode 100644
index 769da62..0000000
--- a/.github/workflows/linux-with-tcl86-build.yml
+++ /dev/null
@@ -1,177 +0,0 @@
-name: Linux (with Tcl 8.6)
-on:
- push:
- branches:
- - "main"
- - "core-8-6-branch"
- tags:
- - "core-**"
-permissions:
- contents: read
-defaults:
- run:
- shell: bash
- working-directory: tk/unix
-env:
- ERROR_ON_FAILURES: 1
-jobs:
- build:
- runs-on: ubuntu-22.04
- strategy:
- matrix:
- compiler:
- - "gcc"
- - "clang"
- cfgopt:
- - ""
- - "CFLAGS=-DTK_NO_DEPRECATED=1"
- - "--disable-shared"
- - "--disable-xft"
- - "--disable-xss"
- - "--enable-symbols"
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- path: tk
- - name: Checkout Tcl
- uses: actions/checkout@v4
- with:
- repository: tcltk/tcl
- ref: core-8-6-branch
- path: tcl
- - name: Setup Environment (compiler=${{ matrix.compiler }})
- run: |
- sudo apt-get install libxss-dev libxft-dev
- mkdir "$HOME/install dir"
- touch tk/doc/man.macros tk/generic/tkStubInit.c
- echo "CFGOPT=$CFGOPT" >> $GITHUB_ENV
- echo "CC=$COMPILER" >> $GITHUB_ENV
- echo "TOOL_DIR=$(cd tcl/tools;pwd)" >> $GITHUB_ENV
- echo "BUILD_CONFIG_ID=$OPTS" >> $GITHUB_ENV
- working-directory: "."
- env:
- CFGOPT: ${{ matrix.cfgopt }}
- COMPILER: ${{ matrix.compiler }}
- OPTS: ${{ matrix.compiler }}${{ matrix.cfgopt }}
- - name: Configure and Build Tcl
- run: |
- ./configure $CFGOPT "--prefix=$HOME/install dir" || {
- cat config.log
- echo "::warning::Failure during Tcl Configure"
- exit 1
- }
- make all install || {
- echo "::warning::Failure during Tcl Build"
- exit 1
- }
- echo "TCL_CONFIG_PATH=`pwd`" >> $GITHUB_ENV
- working-directory: tcl/unix
- - name: Configure (opts=${{ matrix.cfgopt }})
- run: |
- ./configure $CFGOPT --with-tcl=$TCL_CONFIG_PATH --disable-zipfs "--prefix=$HOME/install dir" || {
- cat config.log
- echo "::error::Failure during Configure"
- exit 1
- }
- - name: Build
- run: |
- make binaries libraries || {
- echo "::error::Failure during Build"
- exit 1
- }
- - name: Build Test Harness
- run: |
- make tktest || {
- echo "::error::Failure during Build"
- exit 1
- }
- - name: Test-Drive Installation
- run: |
- make install || {
- echo "::error::Failure during Install"
- exit 1
- }
- - name: Create Distribution Package
- run: |
- make dist || {
- echo "::error::Failure during Distribute"
- exit 1
- }
- - name: Convert Documentation to HTML
- run: |
- make html-tk TOOL_DIR=$TOOL_DIR || {
- echo "::error::Failure during Distribute"
- exit 1
- }
- test:
- runs-on: ubuntu-22.04
- strategy:
- matrix:
- compiler:
- - "gcc"
- cfgopt:
- - ""
- - "--disable-xft"
- - "--enable-symbols"
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- path: tk
- - name: Checkout Tcl
- uses: actions/checkout@v4
- with:
- repository: tcltk/tcl
- ref: core-8-6-branch
- path: tcl
- - name: Setup Environment (compiler=${{ matrix.compiler }})
- run: |
- sudo apt-get install libxss-dev libxft-dev xvfb libicu-dev
- mkdir "$HOME/install dir"
- touch tk/doc/man.macros tk/generic/tkStubInit.c
- echo "CFGOPT=$CFGOPT" >> $GITHUB_ENV
- echo "CC=$COMPILER" >> $GITHUB_ENV
- working-directory: "."
- env:
- CFGOPT: ${{ matrix.cfgopt }}
- COMPILER: ${{ matrix.compiler }}
- - name: Configure and Build Tcl
- run: |
- ./configure $CFGOPT "--prefix=$HOME/install dir" || {
- cat config.log
- echo "::warning::Failure during Tcl Configure"
- exit 1
- }
- make all install || {
- echo "::warning::Failure during Tcl Build"
- exit 1
- }
- echo "TCL_CONFIG_PATH=`pwd`" >> $GITHUB_ENV
- working-directory: tcl/unix
- - name: Configure ${{ matrix.cfgopt }}
- run: |
- ./configure $CFGOPT --with-tcl=$TCL_CONFIG_PATH "--prefix=$HOME/install dir" || {
- cat config.log
- echo "::error::Failure during Configure"
- exit 1
- }
- - name: Build
- run: |
- make binaries libraries tktest || {
- echo "::error::Failure during Build"
- exit 1
- }
- - name: Run Tests
- run: |
- xvfb-run --auto-servernum make test-classic | tee out-classic.txt
- xvfb-run --auto-servernum make test-ttk | tee out-ttk.txt
- grep -q "Failed 0" out-classic.txt || {
- echo "::error::Failure during Test"
- exit 1
- }
- grep -q "Failed 0" out-ttk.txt || {
- echo "::error::Failure during Test"
- exit 1
- }
- timeout-minutes: 15
diff --git a/.github/workflows/linux-with-tcl9-build.yml b/.github/workflows/linux-with-tcl87-build.yml
index 6a4dd4e..557b0e9 100644
--- a/.github/workflows/linux-with-tcl9-build.yml
+++ b/.github/workflows/linux-with-tcl87-build.yml
@@ -1,8 +1,9 @@
-name: Linux (with Tcl 9.0)
+name: Linux (with Tcl 8.7)
on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -38,7 +39,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: main
+ ref: core-8-branch
path: tcl
- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
@@ -123,7 +124,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: main
+ ref: core-8-branch
path: tcl
- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
diff --git a/.github/workflows/linux-with-tcl91-build.yml b/.github/workflows/linux-with-tcl91-build.yml
index b40e6eb..4672b54 100644
--- a/.github/workflows/linux-with-tcl91-build.yml
+++ b/.github/workflows/linux-with-tcl91-build.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
diff --git a/.github/workflows/mac-build.yml b/.github/workflows/mac-build.yml
index 43f08d6..0dc2bc7 100644
--- a/.github/workflows/mac-build.yml
+++ b/.github/workflows/mac-build.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -22,11 +23,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Check out Tcl 8.7
+ - name: Check out Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Prepare checked out repositories
run: |
@@ -74,11 +75,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Check out Tcl 8.7
+ - name: Check out Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Prepare checked out repositories
env:
diff --git a/.github/workflows/onefiledist.yml b/.github/workflows/onefiledist.yml
index 92bc0ff..37f4895 100644
--- a/.github/workflows/onefiledist.yml
+++ b/.github/workflows/onefiledist.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -23,11 +24,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Setup Environment
run: |
@@ -57,7 +58,7 @@ jobs:
# TODO: need the Tk version separately for distro naming below
- name: Package
run: |
- cp bin/wish8.7 ${BUILD_NAME}
+ cp bin/wish9.0 ${BUILD_NAME}
chmod +x ${BUILD_NAME}
tar -cf ${BUILD_NAME}.tar ${BUILD_NAME}
working-directory: ${{ env.INST_DIR }}
@@ -87,11 +88,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Checkout create-dmg
uses: actions/checkout@v4
@@ -175,11 +176,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Setup Environment
run: |
diff --git a/.github/workflows/win-build.yml b/.github/workflows/win-build.yml
index b7b2ae8..851774f 100644
--- a/.github/workflows/win-build.yml
+++ b/.github/workflows/win-build.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -28,11 +29,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Init MSVC
uses: ilammy/msvc-dev-cmd@v1
@@ -117,11 +118,11 @@ jobs:
install: git mingw-w64-x86_64-toolchain make zip
- name: Checkout Tk
uses: actions/checkout@v4
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Prepare
run: |
diff --git a/.project b/.project
index cc5f605..0d24f11 100644
--- a/.project
+++ b/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>tk8.7</name>
+ <name>tk9.0</name>
<comment></comment>
<projects>
</projects>
diff --git a/.travis.yml b/.travis.yml
index 7268340..1767ecb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,6 @@ addons:
- libnotify-dev
- libglib2.0-dev
- libxss-dev
- - libxft-dev
- xvfb
homebrew:
packages:
diff --git a/README.md b/README.md
index f9fceb6..eb88ba9 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# README: Tk
-This is the **Tk 8.7a6** source distribution.
+This is the **Tk 9.0b1** source distribution.
You can get any source release of Tk from [our distribution
site](https://sourceforge.net/projects/tcl/files/Tcl/).
@@ -11,6 +11,10 @@ site](https://sourceforge.net/projects/tcl/files/Tcl/).
[![Build Status](https://github.com/tcltk/tk/workflows/macOS/badge.svg?branch=core-8-6-branch)](https://github.com/tcltk/tk/actions?query=workflow%3A%22macOS%22+branch%3Acore-8-6-branch)
<br>
8.7 (in development, daily build))
+[![Build Status](https://github.com/tcltk/tk/workflows/Linux/badge.svg?branch=core-8-branch)](https://github.com/tcltk/tk/actions?query=workflow%3A%22Linux%22+branch%3Acore-8-branch)
+[![Build Status](https://github.com/tcltk/tk/workflows/Windows/badge.svg?branch=core-8-branch)](https://github.com/tcltk/tk/actions?query=workflow%3A%22Windows%22+branch%3Acore-8-branch)
+[![Build Status](https://github.com/tcltk/tk/workflows/macOS/badge.svg?branch=core-8-branch)](https://github.com/tcltk/tk/actions?query=workflow%3A%22macOS%22+branch%3Acore-8-branch)
+9.0 (in development, daily build))
[![Build Status](https://github.com/tcltk/tk/workflows/Linux/badge.svg?branch=main)](https://github.com/tcltk/tk/actions?query=workflow%3A%22Linux%22+branch%3Amain)
[![Build Status](https://github.com/tcltk/tk/workflows/Windows/badge.svg?branch=main)](https://github.com/tcltk/tk/actions?query=workflow%3A%22Windows%22+branch%3Amain)
[![Build Status](https://github.com/tcltk/tk/workflows/macOS/badge.svg?branch=main)](https://github.com/tcltk/tk/actions?query=workflow%3A%22macOS%22+branch%3Amain)
@@ -21,7 +25,7 @@ This directory contains the sources and documentation for Tk, a
cross-platform GUI toolkit implemented with the Tcl scripting language.
For details on features, incompatibilities, and potential problems with
-this release, see [the Tcl/Tk 8.7 Web page](https://www.tcl-lang.org/software/tcltk/8.7.html)
+this release, see [the Tcl/Tk 9.0 Web page](https://www.tcl-lang.org/software/tcltk/9.0.html)
or refer to the "changes" file in this directory, which contains a
historical record of all changes to Tk.
diff --git a/doc/ttk_panedwindow.n b/doc/ttk_panedwindow.n
index beab063..a6a809b 100644
--- a/doc/ttk_panedwindow.n
+++ b/doc/ttk_panedwindow.n
@@ -132,7 +132,7 @@ are:
.br
\fB\-bordercolor\fP \fIcolor\fP
.br
-\fB\-gripcount\fP \fIcount\fP
+\fB\-gripsize\fP \fIsize\fP (number of screen units)
.br
\fB\-handlepad\fP \fIamount\fP
.br
diff --git a/doc/ttk_scrollbar.n b/doc/ttk_scrollbar.n
index 948c6eb..bd38a5c 100644
--- a/doc/ttk_scrollbar.n
+++ b/doc/ttk_scrollbar.n
@@ -166,7 +166,7 @@ Dynamic states: \fBactive\fP, \fBdisabled\fP.
.br
\fB\-foreground\fP \fIcolor\fP
.br
-\fB\-gripcount\fP \fIcount\fP (number of lines on the thumb)
+\fB\-gripsize\fP \fIsize\fP (number of screen units)
.br
\fB\-lightcolor\fP \fIcolor\fP (color of the light part of the 3D relief)
.br
diff --git a/generic/tk.h b/generic/tk.h
index 481714a..241eca5 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -17,8 +17,8 @@
#define _TK
#include <tcl.h>
-#if (TCL_MAJOR_VERSION < 8) || (TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 6)
-# error Tk 8.7 must be compiled with tcl.h from Tcl 8.6 or better
+#if (TCL_MAJOR_VERSION < 8) || (TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 7)
+# error Tk 9.0 must be compiled with tcl.h from Tcl 8.7 or better
#endif
#ifndef EXTERN
@@ -66,17 +66,16 @@ extern "C" {
*/
#ifndef TK_MAJOR_VERSION
-# define TK_MAJOR_VERSION 8
+# define TK_MAJOR_VERSION 9
#endif
-#if TK_MAJOR_VERSION != 8
-# error "This header-file is for Tk 8 only"
-#endif
-#define TK_MINOR_VERSION 7
-#define TK_RELEASE_LEVEL TCL_ALPHA_RELEASE
-#define TK_RELEASE_SERIAL 6
-
-#define TK_VERSION "8.7"
-#define TK_PATCH_LEVEL "8.7a6"
+#if TK_MAJOR_VERSION == 9
+# define TK_MINOR_VERSION 0
+# define TK_RELEASE_LEVEL TCL_BETA_RELEASE
+# define TK_RELEASE_SERIAL 0
+
+# define TK_VERSION "9.0"
+# define TK_PATCH_LEVEL "9.0b1"
+#endif /* TK_MAJOR_VERSION */
/*
* A special definition used to allow this header file to be included from
@@ -146,14 +145,6 @@ typedef struct Tk_StyledElement_ *Tk_StyledElement;
*/
typedef const char *Tk_Uid;
-
-#if (TCL_MAJOR_VERSION < 9) && (TCL_MINOR_VERSION < 7)
-# ifndef Tcl_Size
-# define Tcl_Size int
-# endif
-# define TCL_SIZE_MAX INT_MAX
-# define TCL_SIZE_MODIFIER ""
-#endif
/*
*----------------------------------------------------------------------
diff --git a/generic/ttk/ttkClamTheme.c b/generic/ttk/ttkClamTheme.c
index f6cd38c..7b33470 100644
--- a/generic/ttk/ttkClamTheme.c
+++ b/generic/ttk/ttkClamTheme.c
@@ -545,7 +545,7 @@ static const Ttk_ElementSpec IndicatorElementSpec = {
typedef struct {
Tcl_Obj *lightColorObj;
Tcl_Obj *borderColorObj;
- Tcl_Obj *gripCountObj;
+ Tcl_Obj *gripSizeObj;
} GripElement;
static const Ttk_ElementOptionSpec GripElementOptions[] = {
@@ -553,8 +553,8 @@ static const Ttk_ElementOptionSpec GripElementOptions[] = {
offsetof(GripElement,lightColorObj), LIGHT_COLOR },
{ "-bordercolor", TK_OPTION_COLOR,
offsetof(GripElement,borderColorObj), DARKEST_COLOR },
- { "-gripcount", TK_OPTION_PIXELS,
- offsetof(GripElement,gripCountObj), "5" },
+ { "-gripsize", TK_OPTION_PIXELS,
+ offsetof(GripElement,gripSizeObj), "7.5p" },
{ NULL, TK_OPTION_BOOLEAN, 0, NULL }
};
@@ -567,8 +567,7 @@ static void GripElementSize(
int gripSize = 0;
(void)paddingPtr;
- Tk_GetPixelsFromObj(NULL, tkwin, grip->gripCountObj, &gripSize);
- gripSize *= 2;
+ Tk_GetPixelsFromObj(NULL, tkwin, grip->gripSizeObj, &gripSize);
if (orient == TTK_ORIENT_HORIZONTAL) {
*widthPtr = gripSize;
} else {
@@ -589,8 +588,7 @@ static void GripElementDraw(
int i;
(void)state;
- Tk_GetPixelsFromObj(NULL, tkwin, grip->gripCountObj, &gripSize);
- gripSize *= 2;
+ Tk_GetPixelsFromObj(NULL, tkwin, grip->gripSizeObj, &gripSize);
if (orient == TTK_ORIENT_HORIZONTAL) {
int x = b.x + (b.width - gripSize) / 2;
@@ -633,7 +631,7 @@ typedef struct { /* Common element record for scrollbar elements */
Tcl_Obj *darkColorObj;
Tcl_Obj *arrowColorObj;
Tcl_Obj *arrowSizeObj;
- Tcl_Obj *gripCountObj;
+ Tcl_Obj *gripSizeObj;
Tcl_Obj *sliderlengthObj;
} ScrollbarElement;
@@ -654,8 +652,8 @@ static const Ttk_ElementOptionSpec ScrollbarElementOptions[] = {
offsetof(ScrollbarElement,arrowColorObj), "#000000" },
{ "-arrowsize", TK_OPTION_PIXELS,
offsetof(ScrollbarElement,arrowSizeObj), STR(SCROLLBAR_THICKNESS) },
- { "-gripcount", TK_OPTION_PIXELS,
- offsetof(ScrollbarElement,gripCountObj), "5" },
+ { "-gripsize", TK_OPTION_PIXELS,
+ offsetof(ScrollbarElement,gripSizeObj), "7.5p" },
{ "-sliderlength", TK_OPTION_PIXELS,
offsetof(ScrollbarElement,sliderlengthObj), "30" },
{ NULL, TK_OPTION_BOOLEAN, 0, NULL }
@@ -720,8 +718,7 @@ static void ThumbElementDraw(
* Draw grip:
*/
TtkGetOrientFromObj(NULL, sb->orientObj, &orient);
- Tk_GetPixelsFromObj(NULL, tkwin, sb->gripCountObj, &gripSize);
- gripSize *= 2;
+ Tk_GetPixelsFromObj(NULL, tkwin, sb->gripSizeObj, &gripSize);
lightGC = Ttk_GCForColor(tkwin,sb->lightColorObj,d);
darkGC = Ttk_GCForColor(tkwin,sb->borderColorObj,d);
diff --git a/generic/ttk/ttkClassicTheme.c b/generic/ttk/ttkClassicTheme.c
index bd02464..a9d07ee 100644
--- a/generic/ttk/ttkClassicTheme.c
+++ b/generic/ttk/ttkClassicTheme.c
@@ -220,7 +220,7 @@ static const Ttk_ElementOptionSpec IndicatorElementOptions[] = {
offsetof(IndicatorElement,colorObj), DEFAULT_BACKGROUND },
{ "-indicatorrelief", TK_OPTION_RELIEF,
offsetof(IndicatorElement,reliefObj), "raised" },
- { "-indicatordiameter", TK_OPTION_PIXELS,
+ { "-indicatorsize", TK_OPTION_PIXELS,
offsetof(IndicatorElement,sizeObj), "9p" },
{ "-indicatormargin", TK_OPTION_STRING,
offsetof(IndicatorElement,marginObj), "0 2 4 2" },
diff --git a/generic/ttk/ttkDefaultTheme.c b/generic/ttk/ttkDefaultTheme.c
index 531fe01..431a5af 100644
--- a/generic/ttk/ttkDefaultTheme.c
+++ b/generic/ttk/ttkDefaultTheme.c
@@ -1207,7 +1207,7 @@ typedef struct {
static const Ttk_ElementOptionSpec TreeitemIndicatorOptions[] = {
{ "-foreground", TK_OPTION_COLOR,
offsetof(TreeitemIndicator,colorObj), DEFAULT_FOREGROUND },
- { "-diameter", TK_OPTION_PIXELS,
+ { "-size", TK_OPTION_PIXELS,
offsetof(TreeitemIndicator,sizeObj), "6.75p" },
{ "-indicatormargins", TK_OPTION_STRING,
offsetof(TreeitemIndicator,marginObj), "2 2 4 2" },
diff --git a/library/tk.tcl b/library/tk.tcl
index a6dc37c..1fc0ab9 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -11,7 +11,7 @@
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
# Verify that we have Tk binary and script components from the same release
-package require -exact tk 8.7a6
+package require -exact tk 9.0b1
# Create a ::tk namespace
namespace eval ::tk {
diff --git a/library/ttk/clamTheme.tcl b/library/ttk/clamTheme.tcl
index abd0bc3..f4644ee 100644
--- a/library/ttk/clamTheme.tcl
+++ b/library/ttk/clamTheme.tcl
@@ -145,15 +145,15 @@ namespace eval ttk::theme::clam {
-labeloutside true -labelmargins {0 0 0 3p} \
-borderwidth 2 -relief raised
- ttk::style configure TScrollbar -gripcount 3.75p \
+ ttk::style configure TScrollbar -gripsize 7.5p \
-arrowsize 10.5p -width 10.5p
- ttk::style configure TScale -gripcount 3.75p \
+ ttk::style configure TScale -gripsize 7.5p \
-arrowsize 10.5p -sliderlength 22.5p
ttk::style configure TProgressbar -background $colors(-frame) \
-arrowsize 10.5p -sliderlength 22.5p
- ttk::style configure Sash -sashthickness 4.5p -gripcount 7.5p
+ ttk::style configure Sash -sashthickness 4.5p -gripsize 15p
}
}
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 9fce557..82c9480 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -112,7 +112,7 @@ TCL_PLATFORM_DIR = $(TCLDIR)/unix
# for this version of Tk:
TCL_BIN_DIR = @TCL_BIN_DIR@
-# The linker flags needed to link in the Tcl library (ex: -ltcl8.7)
+# The linker flags needed to link in the Tcl library (ex: -ltcl9.0)
TCL_LIB_FLAG = @TCL_LIB_FLAG@
# Flag, 1: we're building a shared lib, 0 we're not
diff --git a/unix/configure b/unix/configure
index 065c0bf..146c35f 100755
--- a/unix/configure
+++ b/unix/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for tk 8.7.
+# Generated by GNU Autoconf 2.71 for tk 9.0.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
@@ -608,8 +608,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='tk'
PACKAGE_TARNAME='tk'
-PACKAGE_VERSION='8.7'
-PACKAGE_STRING='tk 8.7'
+PACKAGE_VERSION='9.0'
+PACKAGE_STRING='tk 9.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1382,7 +1382,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures tk 8.7 to adapt to many kinds of systems.
+\`configure' configures tk 9.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1448,7 +1448,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of tk 8.7:";;
+ short | recursive ) echo "Configuration of tk 9.0:";;
esac
cat <<\_ACEOF
@@ -1564,7 +1564,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-tk configure 8.7
+tk configure 9.0
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1920,7 +1920,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by tk $as_me 8.7, which was
+It was created by tk $as_me 9.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
@@ -2582,10 +2582,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-TK_VERSION=8.7
-TK_MAJOR_VERSION=8
-TK_MINOR_VERSION=7
-TK_PATCH_LEVEL="a6"
+TK_VERSION=9.0
+TK_MAJOR_VERSION=9
+TK_MINOR_VERSION=0
+TK_PATCH_LEVEL="b1"
VERSION=${TK_VERSION}
LOCALES="cs da de el en en_gb eo es fr hu it nl pl pt ru sv"
@@ -2678,11 +2678,11 @@ printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory co
`ls -d /usr/local/lib 2>/dev/null` \
`ls -d /usr/contrib/lib 2>/dev/null` \
`ls -d /usr/pkg/lib 2>/dev/null` \
- `ls -d /usr/lib/tcl8.7 2>/dev/null` \
+ `ls -d /usr/lib/tcl9.0 2>/dev/null` \
`ls -d /usr/lib 2>/dev/null` \
`ls -d /usr/lib64 2>/dev/null` \
- `ls -d /usr/local/lib/tcl8.7 2>/dev/null` \
- `ls -d /usr/local/lib/tcl/tcl8.7 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl9.0 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl/tcl9.0 2>/dev/null` \
; do
if test -f "$i/tclConfig.sh" ; then
ac_cv_c_tclconfig="`(cd $i; pwd)`"
@@ -2780,12 +2780,8 @@ printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
if test "${TCL_MAJOR_VERSION}" -lt 9 ; then
-if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
- as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
-Found config for Tcl ${TCL_VERSION}" "$LINENO" 5
-fi
-if test "${TCL_MINOR_VERSION}" -lt 6 ; then
- as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
+if test "${TCL_MINOR_VERSION}" -lt 7 ; then
+ as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.7+
Found config for Tcl ${TCL_VERSION}" "$LINENO" 5
fi
fi
@@ -8919,17 +8915,8 @@ fi
#--------------------------------------------------------------------
# Replace ${VERSION} with contents of ${TK_VERSION}
-if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
TK_STUB_LIB_FILE="libtkstub.a"
TK_STUB_LIB_FLAG="-ltkstub"
-else
- eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}"
-if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
- TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}"
-else
- TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`"
-fi
-fi
eval "TK_STUB_LIB_DIR=\"${libdir}\""
TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
@@ -9551,7 +9538,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by tk $as_me 8.7, which was
+This file was extended by tk $as_me 9.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -9610,7 +9597,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
-tk config.status 8.7
+tk config.status 9.0
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"
diff --git a/unix/configure.ac b/unix/configure.ac
index 38eda9d..6c0433a 100644
--- a/unix/configure.ac
+++ b/unix/configure.ac
@@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during Tk installation
dnl to configure the system for the local environment.
-AC_INIT([tk],[8.7])
+AC_INIT([tk],[9.0])
AC_PREREQ([2.69])
dnl This is only used when included from macosx/configure.ac
@@ -23,10 +23,10 @@ m4_ifdef([SC_USE_CONFIG_HEADERS], [
#endif /* _TKCONFIG */])
])
-TK_VERSION=8.7
-TK_MAJOR_VERSION=8
-TK_MINOR_VERSION=7
-TK_PATCH_LEVEL="a6"
+TK_VERSION=9.0
+TK_MAJOR_VERSION=9
+TK_MINOR_VERSION=0
+TK_PATCH_LEVEL="b1"
VERSION=${TK_VERSION}
LOCALES="cs da de el en en_gb eo es fr hu it nl pl pt ru sv"
@@ -38,12 +38,8 @@ SC_PATH_TCLCONFIG
SC_LOAD_TCLCONFIG
if test "${TCL_MAJOR_VERSION}" -lt 9 ; then
-if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
- AC_MSG_ERROR([${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
-Found config for Tcl ${TCL_VERSION}])
-fi
-if test "${TCL_MINOR_VERSION}" -lt 6 ; then
- AC_MSG_ERROR([${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
+if test "${TCL_MINOR_VERSION}" -lt 7 ; then
+ AC_MSG_ERROR([${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.7+
Found config for Tcl ${TCL_VERSION}])
fi
fi
@@ -714,17 +710,8 @@ AC_SUBST(INSTALL_MSGS)
#--------------------------------------------------------------------
# Replace ${VERSION} with contents of ${TK_VERSION}
-if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
TK_STUB_LIB_FILE="libtkstub.a"
TK_STUB_LIB_FLAG="-ltkstub"
-else
- eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}"
-if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
- TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}"
-else
- TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`"
-fi
-fi
eval "TK_STUB_LIB_DIR=\"${libdir}\""
TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index a46478c..9e1040c 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -93,11 +93,11 @@ AC_DEFUN([SC_PATH_TCLCONFIG], [
`ls -d /usr/local/lib 2>/dev/null` \
`ls -d /usr/contrib/lib 2>/dev/null` \
`ls -d /usr/pkg/lib 2>/dev/null` \
- `ls -d /usr/lib/tcl8.7 2>/dev/null` \
+ `ls -d /usr/lib/tcl9.0 2>/dev/null` \
`ls -d /usr/lib 2>/dev/null` \
`ls -d /usr/lib64 2>/dev/null` \
- `ls -d /usr/local/lib/tcl8.7 2>/dev/null` \
- `ls -d /usr/local/lib/tcl/tcl8.7 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl9.0 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl/tcl9.0 2>/dev/null` \
; do
if test -f "$i/tclConfig.sh" ; then
ac_cv_c_tclconfig="`(cd $i; pwd)`"
@@ -226,11 +226,11 @@ AC_DEFUN([SC_PATH_TKCONFIG], [
`ls -d /usr/local/lib 2>/dev/null` \
`ls -d /usr/contrib/lib 2>/dev/null` \
`ls -d /usr/pkg/lib 2>/dev/null` \
- `ls -d /usr/lib/tk8.7 2>/dev/null` \
+ `ls -d /usr/lib/tk9.0 2>/dev/null` \
`ls -d /usr/lib 2>/dev/null` \
`ls -d /usr/lib64 2>/dev/null` \
- `ls -d /usr/local/lib/tk8.7 2>/dev/null` \
- `ls -d /usr/local/lib/tcl/tk8.7 2>/dev/null` \
+ `ls -d /usr/local/lib/tk9.0 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl/tk9.0 2>/dev/null` \
; do
if test -f "$i/tkConfig.sh" ; then
ac_cv_c_tkconfig="`(cd $i; pwd)`"
diff --git a/unix/tk.spec b/unix/tk.spec
index 6a6924c..208877f 100644
--- a/unix/tk.spec
+++ b/unix/tk.spec
@@ -4,15 +4,15 @@
Name: tk
Summary: Tk graphical toolkit for the Tcl scripting language.
-Version: 8.7a6
+Version: 9.0b1
Release: 2
License: BSD
Group: Development/Languages
Source: http://prdownloads.sourceforge.net/tcl/tk%{version}-src.tar.gz
URL: https://www.tcl-lang.org/
Buildroot: /var/tmp/%{name}%{version}
-Buildrequires: XFree86-devel tcl >= 8.6.0
-Requires: tcl >= 8.6.0
+Buildrequires: XFree86-devel tcl >= 8.7.0
+Requires: tcl >= 8.7.0
%description
The Tcl (Tool Command Language) provides a powerful platform for
diff --git a/win/README b/win/README
index e371a2c..b8ac0cc 100644
--- a/win/README
+++ b/win/README
@@ -1,4 +1,4 @@
-Tk 8.7 for Windows
+Tk 9.0 for Windows
Originally by Scott Stanton while at Sun Microsystems Labs
diff --git a/win/configure b/win/configure
index ba80bbb..3798e14 100755
--- a/win/configure
+++ b/win/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for tk 8.7.
+# Generated by GNU Autoconf 2.71 for tk 9.0.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
@@ -608,8 +608,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='tk'
PACKAGE_TARNAME='tk'
-PACKAGE_VERSION='8.7'
-PACKAGE_STRING='tk 8.7'
+PACKAGE_VERSION='9.0'
+PACKAGE_STRING='tk 9.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1364,7 +1364,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures tk 8.7 to adapt to many kinds of systems.
+\`configure' configures tk 9.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1426,7 +1426,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of tk 8.7:";;
+ short | recursive ) echo "Configuration of tk 9.0:";;
esac
cat <<\_ACEOF
@@ -1524,7 +1524,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-tk configure 8.7
+tk configure 9.0
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1728,7 +1728,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by tk $as_me 8.7, which was
+It was created by tk $as_me 9.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
@@ -2393,10 +2393,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# /bin/sh. The bash shell seems to suffer from some strange failures.
SHELL=/bin/sh
-TK_VERSION=8.7
-TK_MAJOR_VERSION=8
-TK_MINOR_VERSION=7
-TK_PATCH_LEVEL="a6"
+TK_VERSION=9.0
+TK_MAJOR_VERSION=9
+TK_MINOR_VERSION=0
+TK_PATCH_LEVEL="b1"
VER=$TK_MAJOR_VERSION$TK_MINOR_VERSION
#------------------------------------------------------------------------
@@ -4037,15 +4037,10 @@ printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
if test "${TCL_MAJOR_VERSION}" -lt 9 ; then
-if test "${TCL_MAJOR_VERSION}" != "${TK_MAJOR_VERSION}"; then
+if test "${TCL_MINOR_VERSION}" -lt 7; then
as_fn_error $? "${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
-Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.6+.
-Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.6 or better." "$LINENO" 5
-fi
-if test "${TCL_MINOR_VERSION}" -lt 6; then
- as_fn_error $? "${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
-Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.6+.
-Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.6 or better." "$LINENO" 5
+Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.7+.
+Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.7 or better." "$LINENO" 5
fi
fi
@@ -5797,11 +5792,7 @@ else
fi
fi
-if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
- eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${LIBSUFFIX}" ;
-else
- eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${VER}${LIBSUFFIX}" ;
-fi
+eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${LIBSUFFIX}" ;
# FIXME: All of this var junk needs to be done in tcl.m4 !!!!
# I left out the other vars that also need to get defined here.
# we also need to double check about spaces in path names
@@ -6475,7 +6466,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by tk $as_me 8.7, which was
+This file was extended by tk $as_me 9.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -6530,7 +6521,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
-tk config.status 8.7
+tk config.status 9.0
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"
diff --git a/win/configure.ac b/win/configure.ac
index 08e0af7..3c29be1 100644
--- a/win/configure.ac
+++ b/win/configure.ac
@@ -3,7 +3,7 @@
# generate the file "configure", which is run during Tk installation
# to configure the system for the local environment.
-AC_INIT([tk],[8.7])
+AC_INIT([tk],[9.0])
AC_CONFIG_SRCDIR([../generic/tk.h])
AC_PREREQ([2.69])
@@ -12,10 +12,10 @@ AC_PREREQ([2.69])
# /bin/sh. The bash shell seems to suffer from some strange failures.
SHELL=/bin/sh
-TK_VERSION=8.7
-TK_MAJOR_VERSION=8
-TK_MINOR_VERSION=7
-TK_PATCH_LEVEL="a6"
+TK_VERSION=9.0
+TK_MAJOR_VERSION=9
+TK_MINOR_VERSION=0
+TK_PATCH_LEVEL="b1"
VER=$TK_MAJOR_VERSION$TK_MINOR_VERSION
#------------------------------------------------------------------------
@@ -77,15 +77,10 @@ SC_PATH_TCLCONFIG($TK_PATCH_LEVEL)
SC_LOAD_TCLCONFIG
if test "${TCL_MAJOR_VERSION}" -lt 9 ; then
-if test "${TCL_MAJOR_VERSION}" != "${TK_MAJOR_VERSION}"; then
+if test "${TCL_MINOR_VERSION}" -lt 7; then
AC_MSG_ERROR([${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
-Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.6+.
-Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.6 or better.])
-fi
-if test "${TCL_MINOR_VERSION}" -lt 6; then
- AC_MSG_ERROR([${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
-Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.6+.
-Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.6 or better.])
+Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.7+.
+Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.7 or better.])
fi
fi
@@ -247,11 +242,7 @@ else
fi
fi
-if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
- eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${LIBSUFFIX}" ;
-else
- eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${VER}${LIBSUFFIX}" ;
-fi
+eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${LIBSUFFIX}" ;
# FIXME: All of this var junk needs to be done in tcl.m4 !!!!
# I left out the other vars that also need to get defined here.
# we also need to double check about spaces in path names
diff --git a/win/rules.vc b/win/rules.vc
index 4ee70ff..bca056c 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -1240,11 +1240,7 @@ TKIMPLIBNAME = tk$(TK_VERSION)$(SUFX).lib
TKLIBNAME = tcl9tk$(TK_VERSION)$(SUFX).$(EXT)
TKIMPLIBNAME = tcl9tk$(TK_VERSION)$(SUFX).lib
!endif
-!if $(TK_MAJOR_VERSION) == 8
TKSTUBLIBNAME = tkstub$(TK_VERSION).lib
-!else
-TKSTUBLIBNAME = tkstub.lib
-!endif
!if $(DOING_TK)
WISH = $(OUT_DIR)\$(WISHNAME)
diff --git a/win/tcl.m4 b/win/tcl.m4
index fff706b..4bac910 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -985,13 +985,13 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
#------------------------------------------------------------------------
AC_DEFUN([SC_WITH_TCL], [
- if test -d ../../tcl8.7$1/win; then
- TCL_BIN_DEFAULT=../../tcl8.7$1/win
+ if test -d ../../tcl9.0$1/win; then
+ TCL_BIN_DEFAULT=../../tcl9.0$1/win
else
- TCL_BIN_DEFAULT=../../tcl8.7/win
+ TCL_BIN_DEFAULT=../../tcl9.0/win
fi
- AC_ARG_WITH(tcl, [ --with-tcl=DIR use Tcl 8.7 binaries from DIR],
+ AC_ARG_WITH(tcl, [ --with-tcl=DIR use Tcl 9.0 binaries from DIR],
TCL_BIN_DIR=$withval, TCL_BIN_DIR=`cd $TCL_BIN_DEFAULT; pwd`)
if test ! -d $TCL_BIN_DIR; then
AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR does not exist)