aboutsummaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorFrank Sorenson <frank@tuxrocks.com>2005-10-30 02:06:46 -0700
committerJunio C Hamano <junkio@cox.net>2005-11-18 23:55:50 -0800
commite246483dc5b56d7deb04a93b0aa08aba4cde0625 (patch)
tree41b801bfd4a9a8680025c85b0c0b265b4e1c6788 /gitk
parent36a7cad6e4ae8a331731666d985a7619a76bb4fb (diff)
downloadgit-e246483dc5b56d7deb04a93b0aa08aba4cde0625.tar.gz
git-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>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
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
}