Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-gui: Change main window layout to support wider screens
author
Johannes Sixt
<johannes.sixt@telecom.at>
Thu, 11 Oct 2007 00:50:40 +0000
(20:50 -0400)
committer
Shawn O. Pearce
<spearce@spearce.org>
Fri, 12 Oct 2007 04:14:33 +0000
(
00:14
-0400)
The layout is changed to have the file lists at the left (Unstaged
Changes at the top, Staged Changes below it) and the diff window
at the right (with the commit area below it).
+----------+---------------------+
| Unstaged | Diff area |
| | |
| | |
| | |
+----------+ |
| Staged | |
| +---------------------+
| | Commit area |
| | |
+----------+---------------------+
The advantages are:
- The height of the file lists can be adjusted independently to
fit the files that they contain.
- The diff viewer is higher.
On wide screens it is ok that the main window is now generally
wider, too.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
4dcf4e0
)
diff --git
a/git-gui.sh
b/git-gui.sh
index 6b7bdbca21081c45d51ff2e416f6d0845a148a1f..07be97dd5c09657eb1b52fe9d895e32a8107fa73 100755
(executable)
--- a/
git-gui.sh
+++ b/
git-gui.sh
@@
-1658,8
+1658,8
@@
proc do_quit {} {
#
set cfg_geometry [list]
lappend cfg_geometry [wm geometry .]
#
set cfg_geometry [list]
lappend cfg_geometry [wm geometry .]
- lappend cfg_geometry [lindex [.vpane sash coord 0]
1
]
- lappend cfg_geometry [lindex [.vpane.files sash coord 0]
0
]
+ lappend cfg_geometry [lindex [.vpane sash coord 0]
0
]
+ lappend cfg_geometry [lindex [.vpane.files sash coord 0]
1
]
if {[catch {set rc_geometry $repo_config(gui.geometry)}]} {
set rc_geometry {}
}
if {[catch {set rc_geometry $repo_config(gui.geometry)}]} {
set rc_geometry {}
}
@@
-2208,8
+2208,8
@@
pack .branch -side top -fill x
# -- Main Window Layout
#
# -- Main Window Layout
#
-panedwindow .vpane -orient
vertic
al
-panedwindow .vpane.files -orient
horizont
al
+panedwindow .vpane -orient
horizont
al
+panedwindow .vpane.files -orient
vertic
al
.vpane add .vpane.files -sticky nsew -height 100 -width 200
pack .vpane -anchor n -side top -fill both -expand 1
.vpane add .vpane.files -sticky nsew -height 100 -width 200
pack .vpane -anchor n -side top -fill both -expand 1
@@
-2231,7
+2231,6
@@
pack .vpane.files.index.title -side top -fill x
pack .vpane.files.index.sx -side bottom -fill x
pack .vpane.files.index.sy -side right -fill y
pack $ui_index -side left -fill both -expand 1
pack .vpane.files.index.sx -side bottom -fill x
pack .vpane.files.index.sy -side right -fill y
pack $ui_index -side left -fill both -expand 1
-.vpane.files add .vpane.files.index -sticky nsew
# -- Working Directory File List
#
# -- Working Directory File List
#
@@
-2251,7
+2250,9
@@
pack .vpane.files.workdir.title -side top -fill x
pack .vpane.files.workdir.sx -side bottom -fill x
pack .vpane.files.workdir.sy -side right -fill y
pack $ui_workdir -side left -fill both -expand 1
pack .vpane.files.workdir.sx -side bottom -fill x
pack .vpane.files.workdir.sy -side right -fill y
pack $ui_workdir -side left -fill both -expand 1
+
.vpane.files add .vpane.files.workdir -sticky nsew
.vpane.files add .vpane.files.workdir -sticky nsew
+.vpane.files add .vpane.files.index -sticky nsew
foreach i [list $ui_index $ui_workdir] {
rmsel_tag $i
foreach i [list $ui_index $ui_workdir] {
rmsel_tag $i
@@
-2264,8
+2265,8
@@
unset i
frame .vpane.lower -height 300 -width 400
frame .vpane.lower.commarea
frame .vpane.lower.diff -relief sunken -borderwidth 1
frame .vpane.lower -height 300 -width 400
frame .vpane.lower.commarea
frame .vpane.lower.diff -relief sunken -borderwidth 1
-pack .vpane.lower.
commarea -side top -fill x
-pack .vpane.lower.
diff -side bottom -fill both -expand 1
+pack .vpane.lower.
diff -fill both -expand 1
+pack .vpane.lower.
commarea -side bottom -fill x
.vpane add .vpane.lower -sticky nsew
# -- Commit Area Buttons
.vpane add .vpane.lower -sticky nsew
# -- Commit Area Buttons
@@
-2591,11
+2592,11
@@
catch {
set gm $repo_config(gui.geometry)
wm geometry . [lindex $gm 0]
.vpane sash place 0 \
set gm $repo_config(gui.geometry)
wm geometry . [lindex $gm 0]
.vpane sash place 0 \
- [lindex
[.vpane sash coord 0] 0
] \
- [lindex
$gm
1]
+ [lindex
$gm 1
] \
+ [lindex
[.vpane sash coord 0]
1]
.vpane.files sash place 0 \
.vpane.files sash place 0 \
- [lindex
$gm 2
] \
- [lindex
[.vpane.files sash coord 0] 1
]
+ [lindex
[.vpane.files sash coord 0] 0
] \
+ [lindex
$gm 2
]
unset gm
}
unset gm
}