Skip to content

Commit ed7d2af

Browse files
committed
git-gui: always use themed widgets from ttk
git-gui optionally uses themed ui elements from ttk, but the full set of ttk ui elements is always available with Tk 8.6. Keeping code making ttk use optional increases maintenance burden for no benefit. Let's use ttk always, allowing removal of alternate code paths in subsequent patches. Signed-off-by: Mark Levedahl <[email protected]>
1 parent 13df401 commit ed7d2af

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

git-gui.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -913,15 +913,11 @@ proc apply_config {} {
913913
}
914914

915915
global use_ttk NS
916-
set use_ttk 0
917-
set NS {}
918-
if {$repo_config(gui.usettk)} {
919-
set use_ttk 1
920-
set NS ttk
921-
bind [winfo class .] <<ThemeChanged>> [list InitTheme]
922-
pave_toplevel .
923-
color::sync_with_theme
924-
}
916+
set use_ttk 1
917+
set NS ttk
918+
bind [winfo class .] <<ThemeChanged>> [list InitTheme]
919+
pave_toplevel .
920+
color::sync_with_theme
925921

926922
global comment_string
927923
set comment_string [get_config core.commentstring]

0 commit comments

Comments
 (0)