git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitk: Specify line hover font

From
FSFrank Sorenson <frank@tuxrocks.com>
Date
Oct 30, 2005, 09:06 UTC
Message-ID
<43648D26.90006@tuxrocks.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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>
- --- a/gitk	2005-10-30 01:52:29.000000000 -0700
+++ b/gitk	2005-10-30 01:51:45.000000000 -0700
@@ -3143,7 +3143,7 @@
     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
 }
 

Frank
- -- 
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
frank@tuxrocks.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDZIz1aI0dwg4A47wRAjgLAKDFMGTgTPnGI9zBv48p1emAvLg6GgCeNwz3
OSrKWqnqGYpgMC89amkpUos=
=dD0G
-----END PGP SIGNATURE-----
Message 1 of 1 in “gitk: Specify line hover font”
  1. gitk: Specify line hover fontFrank Sorenson, Oct 30, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.