summaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-13 03:06:37 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2006-11-13 05:10:41 (GMT)
commit3e7b0e1d0ae509a54ca61c2b4c4990c8e6f0b2c0 (patch)
treefebe1a7eb848a620f0f6bbcd15c1bdc000a2434b /git-gui
parent135f76ed996b6a0478831c561e1cddd249b7e19d (diff)
downloadgit-3e7b0e1d0ae509a54ca61c2b4c4990c8e6f0b2c0.zip
git-3e7b0e1d0ae509a54ca61c2b4c4990c8e6f0b2c0.tar.gz
git-3e7b0e1d0ae509a54ca61c2b4c4990c8e6f0b2c0.tar.bz2
git-gui: Display status on left in diff header.
Because the Tk pack layout manager gives all space to the right/bottom most widget during expand/contract of the frame we were adding and removing all space from the status area of the bar and not from the file name, which is what we actually wanted. A simple enough fix is to just put the status of the given file on the left side of the diff viewer header rather than on the right. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui')
-rwxr-xr-xgit-gui22
1 files changed, 10 insertions, 12 deletions
diff --git a/git-gui b/git-gui
index 907db0e..00b6cdf 100755
--- a/git-gui
+++ b/git-gui
@@ -2281,6 +2281,13 @@ bind_button3 $ui_comm "tk_popup $ui_comm.ctxm %X %Y"
set ui_fname_value {}
set ui_fstatus_value {}
frame .vpane.lower.diff.header -background orange
+label .vpane.lower.diff.header.l4 \
+ -textvariable ui_fstatus_value \
+ -background orange \
+ -width $max_status_desc \
+ -anchor w \
+ -justify left \
+ -font font_ui
label .vpane.lower.diff.header.l1 -text {File:} \
-background orange \
-font font_ui
@@ -2288,6 +2295,7 @@ set ui_fname .vpane.lower.diff.header.l2
text $ui_fname \
-background orange \
-height 1 \
+ -wrap none \
-relief flat \
-state disabled \
-font font_ui
@@ -2311,19 +2319,9 @@ proc $ui_fname.update {varname args} {
$ui_fname insert end [escape_path $ui_fname_value]
$ui_fname configure -state disabled
}
-label .vpane.lower.diff.header.l3 -text {Status:} \
- -background orange \
- -font font_ui
-label .vpane.lower.diff.header.l4 -textvariable ui_fstatus_value \
- -background orange \
- -width $max_status_desc \
- -anchor w \
- -justify left \
- -font font_ui
+pack .vpane.lower.diff.header.l4 -side left
pack .vpane.lower.diff.header.l1 -side left
-pack .vpane.lower.diff.header.l2 -side left -fill x
-pack .vpane.lower.diff.header.l4 -side right
-pack .vpane.lower.diff.header.l3 -side right
+pack $ui_fname -fill x
# -- Diff Body
frame .vpane.lower.diff.body