{"thread":{"id":"3572","subject":"[PATCH] gitk: Fix size saving for diff and file list panes","startedAt":"2006-03-05T17:09:14Z","lastAt":"2006-03-05T17:09:14Z","messageCount":1,"participants":["Sergey Vlasov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"17194","messageId":"20060305170914.GB9871@procyon.home","threadId":"3572","inReplyTo":null,"subject":"[PATCH] gitk: Fix size saving for diff and file list panes","fromName":"Sergey Vlasov","fromEmail":"vsu@altlinux.ru","sentAt":"2006-03-05T17:09:14Z","receivedAt":"2006-03-05T17:09:14Z","isPatch":true,"sender":{"key":"vsu@altlinux.ru","avatar":"https://avatars.githubusercontent.com/u/616082?v=4"},"body":"Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>\n\nThe splitter between diff and file list panes was moving to the left\nafter every restart of gitk.\n\n---\n\nThis patch applies both to the stable and new gitk versions.\n\n gitk |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\n1e43530dc79f176507e5ad2fd57f4c9ba6cea46a\ndiff --git a/gitk b/gitk\nindex f4c6624..a5331f1 100755\n--- a/gitk\n+++ b/gitk\n@@ -676,10 +676,10 @@ proc savestuff {w} {\n \tputs $f \"set geometry(canv2) [expr {[winfo width $canv2]-2}]\"\n \tputs $f \"set geometry(canv3) [expr {[winfo width $canv3]-2}]\"\n \tputs $f \"set geometry(canvh) [expr {[winfo height $canv]-2}]\"\n-\tset wid [expr {([winfo width $ctext] - 8) \\\n+\tset wid [expr {([winfo width $ctext]) \\\n \t\t\t   / [font measure $textfont \"0\"]}]\n \tputs $f \"set geometry(ctextw) $wid\"\n-\tset wid [expr {([winfo width $cflist] - 11) \\\n+\tset wid [expr {([winfo width $cflist]) \\\n \t\t\t   / [font measure [$cflist cget -font] \"0\"]}]\n \tputs $f \"set geometry(cflistw) $wid\"\n \tclose $f\n-- \n1.2.GIT\n"}]}