刘磊(V.L.) 2009年10月29日 星期四 08:33 | 1857次浏览 | 8条评论
主要是让g
主要是让git-gui能够在小的屏幕上,正常显示其“提交”与“推送”按钮。在Fedora12中,由于默认采用了比较小的gnome窗体,使原来的实现就能够显示那些按钮,咳。补丁的提交经过4次修正,主要是对英语描述的修正;-)。
commit acb9108c19e40b0477b8c828d1c5054665abbaf4
Author: Vietor Liu <vietor@vxwo.org>
Date: Fri Oct 16 17:41:26 2009 +0800
git-gui: adjust the minimum height of diff pane for shorter screen height
When the main window is maximized, if the screen height is shorter (e.g.
Netbook screen 1024x600), both the partial commit pane and the status bar
are hidden. The diff pane is resizable, so that it can use less vertical
height, allowing the overall window to be shorter and still display both
the entire commit pane and status bar.
Signed-off-by: Vietor Liu <vietor@vxwo.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
diff --git a/git-gui.sh b/git-gui.sh
index 09b2720..037a1f2 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -3083,7 +3083,7 @@ frame .vpane.lower.diff.body
set ui_diff .vpane.lower.diff.body.t
text $ui_diff -background white -foreground black \
-borderwidth 0 \
- -width 80 -height 15 -wrap none \
+ -width 80 -height 5 -wrap none \
-font font_diff \
-xscrollcommand {.vpane.lower.diff.body.sbx set} \
-yscrollcommand {.vpane.lower.diff.body.sby set} \
Zeuux © 2024
京ICP备05028076号
回复 冯喜刚 2009年11月02日 星期一 10:20