git-gui: Never line wrap in file lists.
Some of my file paths in some of my repositories are very long, this is rather typical in Java projects where the path name contains a deep package structure and then the file name itself is rather long and (hopefully) descriptive. Seeing these paths line wrap in the file lists looks absolutely horrible. The entire rendering is almost unreadable. Now we draw both horizontal and vertical scrollbars for both file lists, and we never line wrap within the list text itself. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jan 21, 2007 at 14:58 UTC
3c2369773929e299002d5e4e7737ea769ddc3bf8
1 file changed
+14
-6
git-gui.sh
+14
-6
@@ -3654,13 +3654,17 @@ label .vpane.files.index.title -text {Changes To Be Committed} \
3654
-font font_ui
3655
text $ui_index -background white -borderwidth 0 \
3656
-width 40 -height 10 \
3657
+ -wrap none \
3658
-font font_ui \
3659
-cursor $cursor_ptr \
3659
- -yscrollcommand {.vpane.files.index.sb set} \
3660
+ -xscrollcommand {.vpane.files.index.sx set} \
3661
+ -yscrollcommand {.vpane.files.index.sy set} \
3662
-state disabled
3661
-scrollbar .vpane.files.index.sb -command [list $ui_index yview]
3663
+scrollbar .vpane.files.index.sx -orient h -command [list $ui_index xview]
3664
+scrollbar .vpane.files.index.sy -orient v -command [list $ui_index yview]
3665
pack .vpane.files.index.title -side top -fill x
3663
-pack .vpane.files.index.sb -side right -fill y
3666
+pack .vpane.files.index.sx -side bottom -fill x
3667
+pack .vpane.files.index.sy -side right -fill y
3668
pack $ui_index -side left -fill both -expand 1
3669
.vpane.files add .vpane.files.index -sticky nsew
3670
@@ -3672,13 +3676,17 @@ label .vpane.files.workdir.title -text {Changed But Not Updated} \
3676
-font font_ui
3677
text $ui_workdir -background white -borderwidth 0 \
3678
-width 40 -height 10 \
3679
+ -wrap none \
3680
-font font_ui \
3681
-cursor $cursor_ptr \
3677
- -yscrollcommand {.vpane.files.workdir.sb set} \
3682
+ -xscrollcommand {.vpane.files.workdir.sx set} \
3683
+ -yscrollcommand {.vpane.files.workdir.sy set} \
3684
-state disabled
3679
-scrollbar .vpane.files.workdir.sb -command [list $ui_workdir yview]
3685
+scrollbar .vpane.files.workdir.sx -orient h -command [list $ui_workdir xview]
3686
+scrollbar .vpane.files.workdir.sy -orient v -command [list $ui_workdir yview]
3687
pack .vpane.files.workdir.title -side top -fill x
3681
-pack .vpane.files.workdir.sb -side right -fill y
3688
+pack .vpane.files.workdir.sx -side bottom -fill x
3689
+pack .vpane.files.workdir.sy -side right -fill y
3690
pack $ui_workdir -side left -fill both -expand 1
3691
.vpane.files add .vpane.files.workdir -sticky nsew
3692