Skip to content

Commit 0832752

Browse files
committed
git-gui: themed.tcl: use full namespace for color
Tcl 9 imposes strict requirements on namespaces for variables, while Tcl 8 does not. lib/themed.tcl does not use the fully qualified name for the "color" namespace, with result that variables are not found with Tcl 9.0. Fix this. Signed-off-by: Mark Levedahl <[email protected]>
1 parent beab415 commit 0832752

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/themed.tcl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ namespace eval color {
2121
set inactive_select_bg [convert_rgb_to_gray $select_bg]
2222
set inactive_select_fg $select_fg
2323

24-
set color::select_bg $select_bg
25-
set color::select_fg $select_fg
26-
set color::inactive_select_bg $inactive_select_bg
27-
set color::inactive_select_fg $inactive_select_fg
24+
set ::color::select_bg $select_bg
25+
set ::color::select_fg $select_fg
26+
set ::color::inactive_select_bg $inactive_select_bg
27+
set ::color::inactive_select_fg $inactive_select_fg
2828

2929
proc add_option {key val} {
3030
option add $key $val widgetDefault

0 commit comments

Comments
 (0)