summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-07-09 11:14:00 -0400
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-07-09 21:13:26 -0400
commite87fb0f1b4a4b458394a65d664145a9a8001e821 (patch)
tree3a14ca00557c285f5e1331b212d67e895f2b15be /lib
parentgit-gui: Correct ls-tree buffering problem in browser (diff)
downloadtgif-e87fb0f1b4a4b458394a65d664145a9a8001e821.tar.xz
git-gui: Don't linewrap within console windows
If we get more than 80 characters of text in a single line odds are it is output from git-fetch or git-push and its showing a lot of detail off to the right edge that is not so important to the average user. We still want to make sure we show everything we need, but we can get away with that information being off to the side with a horizontal scrollbar. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/console.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/console.tcl b/lib/console.tcl
index ce25d92cac..34de5d4859 100644
--- a/lib/console.tcl
+++ b/lib/console.tcl
@@ -31,16 +31,20 @@ method _init {} {
-background white -borderwidth 1 \
-relief sunken \
-width 80 -height 10 \
+ -wrap none \
-font font_diff \
-state disabled \
+ -xscrollcommand [list $w.m.sbx set] \
-yscrollcommand [list $w.m.sby set]
label $w.m.s -text {Working... please wait...} \
-anchor w \
-justify left \
-font font_uibold
+ scrollbar $w.m.sbx -command [list $w.m.t xview] -orient h
scrollbar $w.m.sby -command [list $w.m.t yview]
pack $w.m.l1 -side top -fill x
pack $w.m.s -side bottom -fill x
+ pack $w.m.sbx -side bottom -fill x
pack $w.m.sby -side right -fill y
pack $w.m.t -side left -fill both -expand 1
pack $w.m -side top -fill both -expand 1 -padx 5 -pady 10