Skip to content

Commit 13df401

Browse files
committed
git-gui: remove redundant check for Tk >= 8.5
Since commit c80d7be, 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 <[email protected]>
1 parent 4e3369f commit 13df401

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

git-gui.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -916,13 +916,11 @@ proc apply_config {} {
916916
set use_ttk 0
917917
set NS {}
918918
if {$repo_config(gui.usettk)} {
919-
set use_ttk [package vsatisfies [package provide Tk] 8.5]
920-
if {$use_ttk} {
921-
set NS ttk
922-
bind [winfo class .] <<ThemeChanged>> [list InitTheme]
923-
pave_toplevel .
924-
color::sync_with_theme
925-
}
919+
set use_ttk 1
920+
set NS ttk
921+
bind [winfo class .] <<ThemeChanged>> [list InitTheme]
922+
pave_toplevel .
923+
color::sync_with_theme
926924
}
927925

928926
global comment_string

0 commit comments

Comments
 (0)