]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: remove redundant check for Tk >= 8.5
authorMark Levedahl <mlevedahl@gmail.com>
Sun, 18 Feb 2024 18:06:05 +0000 (13:06 -0500)
committerMark Levedahl <mlevedahl@gmail.com>
Sat, 19 Jul 2025 03:48:34 +0000 (23:48 -0400)
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>
git-gui.sh

index 2b5d84a56e0166f002b8c921e4d1dfd758b627e2..d395634caf2877b89145b58c34bef0993f8779a1 100755 (executable)
@@ -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