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

[PATCH] gitk: Fix size saving for diff and file list panes

From
Sergey Vlasov <vsu@altlinux.ru>
Date
Mar 5, 2006, 17:09 UTC
Message-ID
<20060305170914.GB9871@procyon.home>
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>

The splitter between diff and file list panes was moving to the left after every restart of gitk.

---
This patch applies both to the stable and new gitk versions.
 gitk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
1e43530dc79f176507e5ad2fd57f4c9ba6cea46a
diff --git a/gitk b/gitk
index f4c6624..a5331f1 100755
--- a/gitk
+++ b/gitk
@@ -676,10 +676,10 @@ proc savestuff {w} {
 	puts $f "set geometry(canv2) [expr {[winfo width $canv2]-2}]"
 	puts $f "set geometry(canv3) [expr {[winfo width $canv3]-2}]"
 	puts $f "set geometry(canvh) [expr {[winfo height $canv]-2}]"
-	set wid [expr {([winfo width $ctext] - 8) \
+	set wid [expr {([winfo width $ctext]) \
 			   / [font measure $textfont "0"]}]
 	puts $f "set geometry(ctextw) $wid"
-	set wid [expr {([winfo width $cflist] - 11) \
+	set wid [expr {([winfo width $cflist]) \
 			   / [font measure [$cflist cget -font] "0"]}]
 	puts $f "set geometry(cflistw) $wid"
 	close $f
-- 
1.2.GIT
Message 1 of 1 in “gitk: Fix size saving for diff and file list panes”
  1. gitk: Fix size saving for diff and file list panesSergey Vlasov, Mar 5, 2006

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.