git-gui: Convert blame to the "class" way of doing things

Our blame viewer code has historically been a mess simply
because the data for multiple viewers was all crammed into
a single pair of Tcl arrays.  This made the code hard to
read and even harder to maintain.

Now that we have a slightly better way of tracking the data
for our "meta-widgets" we can make use of it here in the
blame viewer to cleanup the code and make it easier to work
with long term.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce
2007-05-08 21:33:14 -04:00
parent 28bf928cf8
commit 685caf9af6
3 changed files with 121 additions and 131 deletions

View File

@ -140,7 +140,7 @@ method _enter {} {
append p [lindex $n 1]
}
append p $name
show_blame $browser_commit $p
blame::new $browser_commit $p
}
}
}