All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gitk: persist and restore the window state with the geometry
@ 2009-04-14 21:09 Pat Thoyts
  2009-04-14 21:18 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: Pat Thoyts @ 2009-04-14 21:09 UTC (permalink / raw)
  To: git; +Cc: paulus


  This patch records the window state and if the window was maximized
  this state is re-applied.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
---
 gitk |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gitk b/gitk
index a7294a1..edb3ba2 100755
--- a/gitk
+++ b/gitk
@@ -2251,6 +2251,10 @@ proc makewindow {} {
 	}
     }
 
+    if {[info exists geometry(state)] && $geometry(state) eq "zoomed"} {
+        wm state . $geometry(state)
+    }
+
     if {[tk windowingsystem] eq {aqua}} {
         set M1B M1
         set ::BM "3"
@@ -2540,6 +2544,7 @@ proc savestuff {w} {
 	puts $f [list set perfile_attrs $perfile_attrs]
 
 	puts $f "set geometry(main) [wm geometry .]"
+	puts $f "set geometry(state) [wm state .]"
 	puts $f "set geometry(topwidth) [winfo width .tf]"
 	puts $f "set geometry(topheight) [winfo height .tf]"
         puts $f "set geometry(pwsash0) \"[.tf.histframe.pwclist sash coord 0]\""
-- 
1.6.2.2.1669.g7eaf8

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gitk: persist and restore the window state with the geometry
  2009-04-14 21:09 [PATCH] gitk: persist and restore the window state with the geometry Pat Thoyts
@ 2009-04-14 21:18 ` Johannes Schindelin
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2009-04-14 21:18 UTC (permalink / raw)
  To: Pat Thoyts; +Cc: git, paulus

Hi,

On Tue, 14 Apr 2009, Pat Thoyts wrote:

> 
>   This patch records the window state and if the window was maximized
>   this state is re-applied.

This solves msysGit issue 235:

	http://code.google.com/p/msysgit/issues/detail?id=235

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-14 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14 21:09 [PATCH] gitk: persist and restore the window state with the geometry Pat Thoyts
2009-04-14 21:18 ` Johannes Schindelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.