From: Shawn O. Pearce Date: Sun, 21 Jan 2007 22:50:42 +0000 (-0500) Subject: git-gui: Slightly tweak new window geometry. X-Git-Tag: gitgui-0.6.0~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c5a1eb889ca3df51ac443916a037b59c46983239;p=git.git git-gui: Slightly tweak new window geometry. 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 --- diff --git a/git-gui.sh b/git-gui.sh index c969db5fa..7115cb5d0 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -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 \