aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2024-02-18 13:06:05 -0500
committerMark Levedahl <mlevedahl@gmail.com>2025-07-18 23:48:34 -0400
commit13df401e3ecd0673eee70bd4d5e0247edf29db0f (patch)
tree278bc18ec1844a8e10bf46662b5ebaf8b8537959
parent4e3369f0f6125ad58986170b92530e9eff9fbc97 (diff)
downloadgit-13df401e3ecd0673eee70bd4d5e0247edf29db0f.tar.gz
git-gui: remove redundant check for Tk >= 8.5
Since commit c80d7be5e1e0d, git-gui checks for the availability of ttk before enabling its use, but this check is redundant as Tk >= 8.6 is required. Remove the redundant check. Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
-rwxr-xr-xgit-gui.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 2b5d84a56e..d395634caf 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -916,13 +916,11 @@ proc apply_config {} {
set use_ttk 0
set NS {}
if {$repo_config(gui.usettk)} {
- set use_ttk [package vsatisfies [package provide Tk] 8.5]
- if {$use_ttk} {
- set NS ttk
- bind [winfo class .] <<ThemeChanged>> [list InitTheme]
- pave_toplevel .
- color::sync_with_theme
- }
+ set use_ttk 1
+ set NS ttk
+ bind [winfo class .] <<ThemeChanged>> [list InitTheme]
+ pave_toplevel .
+ color::sync_with_theme
}
global comment_string