summaryrefslogtreecommitdiff
path: root/git-gui.sh
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 /git-gui.sh
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 'git-gui.sh')
-rwxr-xr-xgit-gui.sh14
1 files changed, 4 insertions, 10 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 1844c90..b2c9a9c 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -438,7 +438,6 @@ set _reponame [lindex [file split \
set current_diff_path {}
set current_diff_side {}
set diff_actions [list]
-set ui_status_value {Initializing...}
set HEAD {}
set PARENT {}
@@ -761,13 +760,11 @@ proc mapdesc {state path} {
}
proc ui_status {msg} {
- set ::ui_status_value $msg
+ $::main_status show $msg
}
proc ui_ready {{test {}}} {
- if {$test eq {} || $::ui_status_value eq $test} {
- ui_status Ready.
- }
+ $::main_status show {Ready.} $test
}
proc escape_path {path} {
@@ -2207,12 +2204,9 @@ unset ui_diff_applyhunk
# -- Status Bar
#
-label .status -textvariable ui_status_value \
- -anchor w \
- -justify left \
- -borderwidth 1 \
- -relief sunken
+set main_status [::status_bar::new .status]
pack .status -anchor w -side bottom -fill x
+$main_status show {Initializing...}
# -- Load geometry
#