aboutsummaryrefslogtreecommitdiffstats
path: root/lib/index.tcl
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2025-07-22 17:34:08 +0200
committerJohannes Sixt <j6t@kdbg.org>2025-07-22 17:34:31 +0200
commit594810d2a9ac754260d47c192164e8ab77695a91 (patch)
treed078d53007808700f68d951e2a17b1df1b3f733d /lib/index.tcl
parentdab92fe42fad87a2f7067589a32ee08e70d5354b (diff)
parent9b1c537fdbdf5bcad2f73bbad8eb06983889ff78 (diff)
downloadgit-594810d2a9ac754260d47c192164e8ab77695a91.tar.gz
Merge branch 'ml/tcl86'
* ml/tcl86: git-gui: remove non-ttk code git-gui: remove ${NS} indirection for ttk git-gui: always use themed widgets from ttk git-gui: remove redundant check for Tk >= 8.5 git-gui: remove unreachable Tk 8.4 code git-gui: Make TclTk 8.6 the minimum, allow 8.7 Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Diffstat (limited to 'lib/index.tcl')
-rw-r--r--lib/index.tcl8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/index.tcl b/lib/index.tcl
index 857864ff2b..377547034b 100644
--- a/lib/index.tcl
+++ b/lib/index.tcl
@@ -22,8 +22,6 @@ proc _close_updateindex {fd} {
}
proc rescan_on_error {err {after {}}} {
- global use_ttk NS
-
set w .indexfried
Dialog $w
wm withdraw $w
@@ -35,14 +33,14 @@ proc rescan_on_error {err {after {}}} {
-borderwidth 0 -highlightthickness 0 \
-background [get_bg_color $w]
$w.msg tag configure bold -font font_uibold -justify center
- ${NS}::scrollbar $w.vs -command [list $w.msg yview]
+ ttk::scrollbar $w.vs -command [list $w.msg yview]
$w.msg insert end $s bold \n\n$err {}
$w.msg configure -state disabled
- ${NS}::button $w.continue \
+ ttk::button $w.continue \
-text [mc "Continue"] \
-command [list destroy $w]
- ${NS}::button $w.unlock \
+ ttk::button $w.unlock \
-text [mc "Unlock Index"] \
-command "destroy $w; _delete_indexlock"
grid $w.msg - $w.vs -sticky news