{"thread":{"id":"18871","subject":"[PATCH] gitk: persist and restore the window state with the geometry","startedAt":"2009-04-14T21:09:53Z","lastAt":"2009-04-14T21:18:21Z","messageCount":2,"participants":["Pat Thoyts","Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"111321","messageId":"873acbndr2.fsf@users.sourceforge.net","threadId":"18871","inReplyTo":null,"subject":"[PATCH] gitk: persist and restore the window state with the geometry","fromName":"Pat Thoyts","fromEmail":"patthoyts@users.sourceforge.net","sentAt":"2009-04-14T21:09:53Z","receivedAt":"2009-04-14T21:09:53Z","isPatch":true,"sender":{"key":"patthoyts@users.sourceforge.net","avatar":"https://avatars.githubusercontent.com/u/30739?v=4"},"body":"\n  This patch records the window state and if the window was maximized\n  this state is re-applied.\n\nSigned-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>\n---\n gitk |    5 +++++\n 1 files changed, 5 insertions(+), 0 deletions(-)\n\ndiff --git a/gitk b/gitk\nindex a7294a1..edb3ba2 100755\n--- a/gitk\n+++ b/gitk\n@@ -2251,6 +2251,10 @@ proc makewindow {} {\n \t}\n     }\n \n+    if {[info exists geometry(state)] && $geometry(state) eq \"zoomed\"} {\n+        wm state . $geometry(state)\n+    }\n+\n     if {[tk windowingsystem] eq {aqua}} {\n         set M1B M1\n         set ::BM \"3\"\n@@ -2540,6 +2544,7 @@ proc savestuff {w} {\n \tputs $f [list set perfile_attrs $perfile_attrs]\n \n \tputs $f \"set geometry(main) [wm geometry .]\"\n+\tputs $f \"set geometry(state) [wm state .]\"\n \tputs $f \"set geometry(topwidth) [winfo width .tf]\"\n \tputs $f \"set geometry(topheight) [winfo height .tf]\"\n         puts $f \"set geometry(pwsash0) \\\"[.tf.histframe.pwclist sash coord 0]\\\"\"\n-- \n1.6.2.2.1669.g7eaf8\n"},{"id":"111322","messageId":"alpine.DEB.1.00.0904142317330.10279@pacific.mpi-cbg.de","threadId":"18871","inReplyTo":"873acbndr2.fsf@users.sourceforge.net","subject":"Re: [PATCH] gitk: persist and restore the window state with the geometry","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-04-14T21:18:21Z","receivedAt":"2009-04-14T21:18:21Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 14 Apr 2009, Pat Thoyts wrote:\n\n> \n>   This patch records the window state and if the window was maximized\n>   this state is re-applied.\n\nThis solves msysGit issue 235:\n\n\thttp://code.google.com/p/msysgit/issues/detail?id=235\n\nCiao,\nDscho\n"}]}