@matheusbsbs / matheus-bagliano / commits / e246483dc5
Fork 0

gitk: Specify line hover font

Hovering over a line in gitk displays the commit one-liner in a box, but the text usually overflows the box. The box size is computed with a specified font, so this patch sets the text font as well. Signed-off-by: Frank Sorenson <frank@tuxrocks.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Frank Sorenson committed Oct 30, 2005 at 02:06 UTC e246483dc5b56d7deb04a93b0aa08aba4cde0625
1 file changed +1 -1
gitk
+1 -1
@@ -3125,7 +3125,7 @@ proc linehover {} {
3125 set t [$canv create rectangle $x0 $y0 $x1 $y1 \
3126 -fill \#ffff80 -outline black -width 1 -tags hover]
3127 $canv raise $t
3128 - set t [$canv create text $x $y -anchor nw -text $text -tags hover]
3128 + set t [$canv create text $x $y -anchor nw -text $text -tags hover -font $mainfont]
3129 $canv raise $t
3130 }
3131