summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-07-09 02:06:33 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-07-09 02:34:54 (GMT)
commit51530d1722b0a4cccc630043fc4b46d075bf8558 (patch)
tree53e3be845dbb38255f9fd573367e5b4eb7857aac /lib
parentb29bd5ca3b0060513b7b96380fc43f7ab4f12156 (diff)
downloadgit-51530d1722b0a4cccc630043fc4b46d075bf8558.zip
git-51530d1722b0a4cccc630043fc4b46d075bf8558.tar.gz
git-51530d1722b0a4cccc630043fc4b46d075bf8558.tar.bz2
git-gui: Change the main window progress bar to use status_bar
Now that we have a fancy status bar mega-widget we can reuse that within our main window. This opens the door for implementating future improvements like a progress bar. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/status_bar.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/status_bar.tcl b/lib/status_bar.tcl
index a6dea29..0e2ac07 100644
--- a/lib/status_bar.tcl
+++ b/lib/status_bar.tcl
@@ -63,8 +63,10 @@ method stop {msg} {
set status $msg
}
-method show {msg} {
- set status $msg
+method show {msg {test {}}} {
+ if {$test eq {} || $status eq $test} {
+ set status $msg
+ }
}
method _delete {current} {