summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 135f76e)
raw | patch | inline | side by side (parent: 135f76e)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 13 Nov 2006 03:06:37 +0000 (22:06 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 13 Nov 2006 05:10:41 +0000 (00:10 -0500) |
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>
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>
git-gui | patch | blob | history |
index 907db0e9dce005598c256366831558e378120274..00b6cdf28126d6462f3eebec930a265ef7e9722b 100755 (executable)
--- a/git-gui
+++ b/git-gui
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
text $ui_fname \
-background orange \
-height 1 \
+ -wrap none \
-relief flat \
-state disabled \
-font font_ui
$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