summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Frank Sorenson <frank@tuxrocks.com>2005-10-30 02:06:46 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2005-11-18 23:55:50 -0800
commite246483dc5b56d7deb04a93b0aa08aba4cde0625 (patch)
tree41b801bfd4a9a8680025c85b0c0b265b4e1c6788
parentreadrefs: grab all refs with one call to ls-remote. (diff)
downloadtgif-e246483dc5b56d7deb04a93b0aa08aba4cde0625.tar.xz
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>
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitk b/gitk
index 3ea94349f8..5deab53c54 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
}