]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: Slightly tweak new window geometry.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 22:50:42 +0000 (17:50 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 22 Jan 2007 03:47:59 +0000 (22:47 -0500)
I didn't really like the way a new git-gui launched in a new repository
as the window geometry wasn't quite the best layou.  So this is a minor
tweak to try and get space distributed around the window better.

By decreasing the widths we're also able to shrink the gui smaller
without Tk clipping content at the edge of the window.  A nice feature.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index c969db5fa5b0fcc06c4912b1702b164e6de36279..7115cb5d0559972d152c53b39bfabc2aca5369ad 100755 (executable)
@@ -3726,17 +3726,17 @@ pack .branch -side top -fill x
 #
 panedwindow .vpane -orient vertical
 panedwindow .vpane.files -orient horizontal
-.vpane add .vpane.files -sticky nsew -height 100 -width 400
+.vpane add .vpane.files -sticky nsew -height 100 -width 200
 pack .vpane -anchor n -side top -fill both -expand 1
 
 # -- Index File List
 #
-frame .vpane.files.index -height 100 -width 400
+frame .vpane.files.index -height 100 -width 200
 label .vpane.files.index.title -text {Changes To Be Committed} \
        -background green \
        -font font_ui
 text $ui_index -background white -borderwidth 0 \
-       -width 40 -height 10 \
+       -width 20 -height 10 \
        -wrap none \
        -font font_ui \
        -cursor $cursor_ptr \
@@ -3753,12 +3753,12 @@ pack $ui_index -side left -fill both -expand 1
 
 # -- Working Directory File List
 #
-frame .vpane.files.workdir -height 100 -width 100
+frame .vpane.files.workdir -height 100 -width 200
 label .vpane.files.workdir.title -text {Changed But Not Updated} \
        -background red \
        -font font_ui
 text $ui_workdir -background white -borderwidth 0 \
-       -width 40 -height 10 \
+       -width 20 -height 10 \
        -wrap none \
        -font font_ui \
        -cursor $cursor_ptr \