summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Max Kirillov <max@max630.net>2013-08-21 06:38:40 +0300
committerLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2013-08-27 20:06:43 +0100
commit918dbf5887f68409f9225b8f84f7418c89e79a5f (patch)
tree3c1975fb4d40c75ea03dbd882cc78be5a914c417
parentgit-gui: Add gui.displayuntracked option (diff)
downloadtgif-918dbf5887f68409f9225b8f84f7418c89e79a5f.tar.xz
git-gui: right half window is paned
For long descriptions it would be nice to be able to resize the comment text field. Signed-off-by: Max Kirillov <max@max630.net> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
-rwxr-xr-xgit-gui.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 32303b01c9..b62ae4a949 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -3210,13 +3210,19 @@ unset i
# -- Diff and Commit Area
#
-${NS}::frame .vpane.lower -height 300 -width 400
+${NS}::panedwindow .vpane.lower -orient vertical
${NS}::frame .vpane.lower.commarea
-${NS}::frame .vpane.lower.diff -relief sunken -borderwidth 1
-pack .vpane.lower.diff -fill both -expand 1
-pack .vpane.lower.commarea -side bottom -fill x
+${NS}::frame .vpane.lower.diff -relief sunken -borderwidth 1 -height 500
+.vpane.lower add .vpane.lower.diff
+.vpane.lower add .vpane.lower.commarea
.vpane add .vpane.lower
-if {!$use_ttk} {.vpane paneconfigure .vpane.lower -sticky nsew}
+if {$use_ttk} {
+ .vpane.lower pane .vpane.lower.diff -weight 1
+ .vpane.lower pane .vpane.lower.commarea -weight 0
+} else {
+ .vpane.lower paneconfigure .vpane.lower.diff -stretch always
+ .vpane.lower paneconfigure .vpane.lower.commarea -stretch never
+}
# -- Commit Area Buttons
#