From: Frank Sorenson Date: Sun, 30 Oct 2005 09:06:46 +0000 (-0700) Subject: gitk: Specify line hover font X-Git-Tag: v0.99.9k^2~46^2~3 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=e246483dc5b56d7deb04a93b0aa08aba4cde0625;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/gitk b/gitk index 3ea94349f..5deab53c5 100755 --- a/gitk +++ b/gitk @@ -3125,7 +3125,7 @@ proc linehover {} { set t [$canv create rectangle $x0 $y0 $x1 $y1 \ -fill \#ffff80 -outline black -width 1 -tags hover] $canv raise $t - set t [$canv create text $x $y -anchor nw -text $text -tags hover] + set t [$canv create text $x $y -anchor nw -text $text -tags hover -font $mainfont] $canv raise $t }