Skip to contentSkip to conversation

git-gui: fix usage of themed widgets variable

PATCH In review Heiko Voigt 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-gui: fix usage of themed widgets variable

There was one forgotten global so NS was not visible to the method which resulted in an error.

---
 git-gui/lib/status_bar.tcl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
git-gui/lib/status_bar.tcl +1 -0
index 5fe3aad..95cb449 100644
@@ -39,6 +39,7 @@ method _oneline_pack {} {
 }
 
 constructor two_line {path} {
+	global NS
 	set w $path
 	set w_l $w.l
 	set w_c $w.c
Signature · 1 line
1.7.0.m5.rc2.13.g7abfa.dirty
#1 lore raw
Quoted 17 lines · Heiko Voigt

There was one forgotten global so NS was not visible to the method which resulted in an error.

---
 git-gui/lib/status_bar.tcl |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
git-gui/lib/status_bar.tcl +1 -0
index 5fe3aad..95cb449 100644
@@ -39,6 +39,7 @@ method _oneline_pack {} {
  }
 
  constructor two_line {path} {
+       global NS
Quoted 5 lines

       set w $path
       set w_l $w.l
       set w_c $w.c
--
1.7.0.m5.rc2.13.g7abfa.dirty

The commit message should mention what triggered the error I think - but this patch is clearly correct.
You can have a

if you like :)

Pat Thoyts.

#2 lore raw

PATCH v2 1/1 git-gui: fix usage of themed widgets variable

There was one forgotten global so NS was not visible to the method which resulted in an error.

The error was triggered by using git gui to clone a local repository.

---

Quoted 5 lines · Pat Thoyts
Quoted 4 lines · Heiko Voigt

There was one forgotten global so NS was not visible to the method which resulted in an error.

[...]

Quoted 8 lines

The commit message should mention what triggered the error I think - but this patch is clearly correct.
You can have a

if you like :)

Thanks, taken.

 git-gui/lib/status_bar.tcl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
git-gui/lib/status_bar.tcl +1 -0
index 5fe3aad..95cb449 100644
@@ -39,6 +39,7 @@ method _oneline_pack {} {
 }
 
 constructor two_line {path} {
+	global NS
 	set w $path
 	set w_l $w.l
 	set w_c $w.c
Signature · 1 line
1.7.0.m5.rc2.13.g7abfa.dirty