]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: themed.tcl: use full namespace for color
authorMark Levedahl <mlevedahl@gmail.com>
Sat, 10 May 2025 01:39:56 +0000 (21:39 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Thu, 31 Jul 2025 17:51:03 +0000 (13:51 -0400)
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 <mlevedahl@gmail.com>
lib/themed.tcl

index 8c4a0c2ee7a0deb86f0523cadded326bd07b6725..c18e201d85e69d7653ca94971028415b97a0a61d 100644 (file)
@@ -21,10 +21,10 @@ namespace eval color {
                set inactive_select_bg  [convert_rgb_to_gray $select_bg]
                set inactive_select_fg  $select_fg
 
-               set color::select_bg $select_bg
-               set color::select_fg $select_fg
-               set color::inactive_select_bg $inactive_select_bg
-               set color::inactive_select_fg $inactive_select_fg
+               set ::color::select_bg $select_bg
+               set ::color::select_fg $select_fg
+               set ::color::inactive_select_bg $inactive_select_bg
+               set ::color::inactive_select_fg $inactive_select_fg
 
                proc add_option {key val} {
                        option add $key $val widgetDefault