git-gui: Remove unnecessary space between columns in blame viewer
On Mac OS X the OS has "features" that like to draw thick black borders around the text field that has focus. This is nice if you want to know where your text is going and are blind as a bat, but it isn't the best thing to have in a table that is being faked through the abuse of Tk text widgets. By setting our takefocus, highlightthickness and padx/y we can get rid of this border and get our text widgets packed right next to each other, with no padding between them. This makes the blame background color smoothly run across the entire line of commit data, line number and file content. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jun 2, 2007 at 02:55 UTC
063257076d8ea2bbf185ca33192583e03099e955
1 file changed
+10
-1
lib/blame.tcl
+10
-1
@@ -114,16 +114,22 @@ constructor new {i_commit i_path} {
114
115
set w_line $w.file_pane.out.linenumber_t
116
text $w_line \
117
+ -takefocus 0 \
118
+ -highlightthickness 0 \
119
+ -padx 0 -pady 0 \
120
-background white -borderwidth 0 \
121
-state disabled \
122
-wrap none \
123
-height 40 \
124
-width 5 \
125
-font font_diff
123
- $w_line tag conf linenumber -justify right
126
+ $w_line tag conf linenumber -justify right -rmargin 5
127
128
set w_cgrp $w.file_pane.out.commit_t
129
text $w_cgrp \
130
+ -takefocus 0 \
131
+ -highlightthickness 0 \
132
+ -padx 0 -pady 0 \
133
-background white -borderwidth 0 \
134
-state disabled \
135
-wrap none \
@@ -140,6 +146,9 @@ constructor new {i_commit i_path} {
146
147
set w_file $w.file_pane.out.file_t
148
text $w_file \
149
+ -takefocus 0 \
150
+ -highlightthickness 0 \
151
+ -padx 0 -pady 0 \
152
-background white -borderwidth 0 \
153
-state disabled \
154
-wrap none \