git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] gitk: restore wm state to normal before saving geometry information
@ 2009-09-08 19:22 Alexey Borzenkov
  2009-09-15  9:26 ` [PATCH 1/2] Work around leftover temporary save file Pat Thoyts
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Alexey Borzenkov @ 2009-09-08 19:22 UTC (permalink / raw)
  To: git; +Cc: paulus, Alexey Borzenkov

gitk now includes patches for saving and restoring wm state, however
because it saves wm geometry when window can still be maximized the
maximize/restore button becomes useless after restarting gitk (you
will get a huge displaced window if you try to restore it). This
patch fixes this issue by storing window geometry in normal state.

Signed-off-by: Alexey Borzenkov <snaury@gmail.com>
---
 My previous email didn't come out rights, I hope this one will
 Don't forget to cc me if you have any comments/questions

 gitk |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/gitk b/gitk
index 8c08310..fedeb88 100755
--- a/gitk
+++ b/gitk
@@ -2555,8 +2555,11 @@ proc savestuff {w} {
 	puts $f [list set extdifftool $extdifftool]
 	puts $f [list set perfile_attrs $perfile_attrs]
 
-	puts $f "set geometry(main) [wm geometry .]"
 	puts $f "set geometry(state) [wm state .]"
+	if {[wm state .] eq {zoomed}} {
+		wm state . normal
+	}
+	puts $f "set geometry(main) [wm geometry .]"
 	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.4.2

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

* [PATCH 1/2] Work around leftover temporary save file.
  2009-09-08 19:22 [PATCH] gitk: restore wm state to normal before saving geometry information Alexey Borzenkov
@ 2009-09-15  9:26 ` Pat Thoyts
  2009-09-15 13:01   ` Alex Riesen
  2009-09-15  9:37 ` [PATCH 2/2] Fix the geometry when restoring from zoomed state Pat Thoyts
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 16+ messages in thread
From: Pat Thoyts @ 2009-09-15  9:26 UTC (permalink / raw)
  To: git; +Cc: Alexy Borzenkov, Paul Mackerras


If a file exists and is hidden on Windows the Tcl open command will
fail as the attributes provided in the CREAT call fail to match those
of the existing file. Forcing removal of the temporary file before we
begin solves any problems caused by previous failures to save the
application settings. An alternative would be to remove the hidden
attribute before calling 'open'.

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

diff --git a/gitk b/gitk
index 1306178..a0214b7 100755
--- a/gitk
+++ b/gitk
@@ -2526,6 +2526,7 @@ proc savestuff {w} {
     if {$stuffsaved} return
     if {![winfo viewable .]} return
     catch {
+	if {[file exists ~/.gitk-new]} {file delete -force ~/.gitk-new}
 	set f [open "~/.gitk-new" w]
 	if {$::tcl_platform(platform) eq {windows}} {
 	    file attributes "~/.gitk-new" -hidden true
-- 
1.6.4.msysgit.0

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

* [PATCH 2/2] Fix the geometry when restoring from zoomed state.
  2009-09-08 19:22 [PATCH] gitk: restore wm state to normal before saving geometry information Alexey Borzenkov
  2009-09-15  9:26 ` [PATCH 1/2] Work around leftover temporary save file Pat Thoyts
@ 2009-09-15  9:37 ` Pat Thoyts
  2009-09-15 14:11   ` Alexey Borzenkov
  2009-09-17 12:15   ` [PATCH 2/2] gitk: " Paul Mackerras
  2009-09-15 12:03 ` [PATCH] gitk: restore wm state to normal before saving geometry information Pat Thoyts
  2009-09-16 10:21 ` Paul Mackerras
  3 siblings, 2 replies; 16+ messages in thread
From: Pat Thoyts @ 2009-09-15  9:37 UTC (permalink / raw)
  To: git; +Cc: Alexy Borzenkov, Paul Mackerras


The patch to handle the geometry of a restored gitk by Alexy Borzenkov
causes the position of the columns to creep each time the application
is restarted. This patch addresses this by remembering the application
geometry for the normal state and saving that regardless of the actual
state when the application is closed.

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

diff --git a/gitk b/gitk
index a0214b7..67122c3 100755
--- a/gitk
+++ b/gitk
@@ -2251,6 +2251,8 @@ proc makewindow {} {
 	    }
 	    wm geometry . "${w}x$h"
 	}
+    } else {
+	set geometry(main) [wm geometry .]
     }
 
     if {[info exists geometry(state)] && $geometry(state) eq "zoomed"} {
@@ -2265,6 +2267,11 @@ proc makewindow {} {
         set ::BM "2"
     }
 
+    bind . <Configure> {
+	if {[winfo toplevel %W] eq "%W" && [wm state %W] eq "normal"} {
+	    set ::geometry(main) %wx%h+%x+%y
+	}
+    }
     bind .pwbottom <Configure> {resizecdetpanes %W %w}
     pack .ctop -fill both -expand 1
     bindall <1> {selcanvline %W %x %y}
@@ -2556,7 +2563,7 @@ proc savestuff {w} {
 	puts $f [list set extdifftool $extdifftool]
 	puts $f [list set perfile_attrs $perfile_attrs]
 
-	puts $f "set geometry(main) [wm geometry .]"
+	puts $f "set geometry(main) $::geometry(main)"
 	puts $f "set geometry(state) [wm state .]"
 	puts $f "set geometry(topwidth) [winfo width .tf]"
 	puts $f "set geometry(topheight) [winfo height .tf]"
-- 
1.6.4.msysgit.0

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

* Re: [PATCH] gitk: restore wm state to normal before saving geometry information
  2009-09-08 19:22 [PATCH] gitk: restore wm state to normal before saving geometry information Alexey Borzenkov
  2009-09-15  9:26 ` [PATCH 1/2] Work around leftover temporary save file Pat Thoyts
  2009-09-15  9:37 ` [PATCH 2/2] Fix the geometry when restoring from zoomed state Pat Thoyts
@ 2009-09-15 12:03 ` Pat Thoyts
  2009-09-15 12:54   ` Alexey Borzenkov
  2009-09-16 10:21 ` Paul Mackerras
  3 siblings, 1 reply; 16+ messages in thread
From: Pat Thoyts @ 2009-09-15 12:03 UTC (permalink / raw)
  To: git; +Cc: Alexey Borzenkov

Alexey Borzenkov <snaury@gmail.com> writes:

>gitk now includes patches for saving and restoring wm state, however
>because it saves wm geometry when window can still be maximized the
>maximize/restore button becomes useless after restarting gitk (you
>will get a huge displaced window if you try to restore it). This
>patch fixes this issue by storing window geometry in normal state.
>

I tried this patch on windows and I find that it causes the columns in
the top view to creep each time you restart the application. This is I
think due to the way this patch sets the state to normal before
recording all the settings.

I will post an alternative patch that records the normal geometry
whenever it changes instead which seems to work better for me.

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD

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

* Re: [PATCH] gitk: restore wm state to normal before saving geometry  information
  2009-09-15 12:03 ` [PATCH] gitk: restore wm state to normal before saving geometry information Pat Thoyts
@ 2009-09-15 12:54   ` Alexey Borzenkov
  2009-09-15 13:58     ` Alexey Borzenkov
  0 siblings, 1 reply; 16+ messages in thread
From: Alexey Borzenkov @ 2009-09-15 12:54 UTC (permalink / raw)
  To: Pat Thoyts; +Cc: git

On Tue, Sep 15, 2009 at 4:03 PM, Pat Thoyts
<patthoyts@users.sourceforge.net> wrote:
>>gitk now includes patches for saving and restoring wm state, however
>>because it saves wm geometry when window can still be maximized the
>>maximize/restore button becomes useless after restarting gitk (you
>>will get a huge displaced window if you try to restore it). This
>>patch fixes this issue by storing window geometry in normal state.
> I tried this patch on windows and I find that it causes the columns in
> the top view to creep each time you restart the application. This is I
> think due to the way this patch sets the state to normal before
> recording all the settings.


This is strange, as I certainly don't see this behaviour now (I'm
using gitk in version 1.6.4.3). Actually, I did see that behaviour
once, but I believe this was when I ran an unpatched gitk which seemed
to record wrong geometry. As soon as I cleared ~/.gitk of those wrong
coordinates I haven't seen this behaviour anymore.

On the other hand, when I resize columns and then maximize/restore the
window repeatedly I see that their sizes change in a strange way (and
the smaller restored window they stranger are results) until hitting
some sort of equilibrium, then maximize/restore doesn't have effect on
their sizes anymore. So maybe there's a bug not in a way my patch
restores the window, but in a way window resizes are handled.


> I will post an alternative patch that records the normal geometry
> whenever it changes instead which seems to work better for me.


By all means.

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

* Re: [PATCH 1/2] Work around leftover temporary save file.
  2009-09-15  9:26 ` [PATCH 1/2] Work around leftover temporary save file Pat Thoyts
@ 2009-09-15 13:01   ` Alex Riesen
  2009-09-15 14:14     ` Alexey Borzenkov
  2009-09-15 14:47     ` Pat Thoyts
  0 siblings, 2 replies; 16+ messages in thread
From: Alex Riesen @ 2009-09-15 13:01 UTC (permalink / raw)
  To: Pat Thoyts; +Cc: git, Alexy Borzenkov, Paul Mackerras

On Tue, Sep 15, 2009 at 11:26, Pat Thoyts
<patthoyts@users.sourceforge.net> wrote:
>
> If a file exists and is hidden on Windows the Tcl open command will
> fail as the attributes provided in the CREAT call fail to match those
> of the existing file. Forcing removal of the temporary file before we
> begin solves any problems caused by previous failures to save the
> application settings. An alternative would be to remove the hidden
> attribute before calling 'open'.
>
> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
> ---
>  gitk |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/gitk b/gitk
> index 1306178..a0214b7 100755
> --- a/gitk
> +++ b/gitk
> @@ -2526,6 +2526,7 @@ proc savestuff {w} {
>     if {$stuffsaved} return
>     if {![winfo viewable .]} return
>     catch {
> +       if {[file exists ~/.gitk-new]} {file delete -force ~/.gitk-new}

maybe another gitk instance is writing it at exactly same moment
in time? Writing is known to take a few moments. Especially on Windows.

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

* Re: [PATCH] gitk: restore wm state to normal before saving geometry  information
  2009-09-15 12:54   ` Alexey Borzenkov
@ 2009-09-15 13:58     ` Alexey Borzenkov
  0 siblings, 0 replies; 16+ messages in thread
From: Alexey Borzenkov @ 2009-09-15 13:58 UTC (permalink / raw)
  To: Pat Thoyts; +Cc: git

On Tue, Sep 15, 2009 at 4:54 PM, Alexey Borzenkov <snaury@gmail.com> wrote:
> On the other hand, when I resize columns and then maximize/restore the
> window repeatedly I see that their sizes change in a strange way (and
> the smaller restored window they stranger are results) until hitting
> some sort of equilibrium, then maximize/restore doesn't have effect on
> their sizes anymore. So maybe there's a bug not in a way my patch
> restores the window, but in a way window resizes are handled.

It seems that I found what's the problem. When the window is very
small, and we maximize it, sash coords would initially be small. Then
we calculate their new positions and set it with $win sash place, but
unfortunately, tk limits them to the OLD pane size for some reason.
Initially I though that maybe Configure is fired too early (before
window is resized), but [winfo width $win] shows $win has the new
size. Here's some output that I got during debugging:

resizing 422 -> 1261 (winfo shows 1261)
    s0: 138 1
    s1: 288 1
    sash0: 412 -> 412 1
    sash1: 860 -> 417 1

I'm at a loss why this happens and how to lift this restriction.

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

* Re: [PATCH 2/2] Fix the geometry when restoring from zoomed state.
  2009-09-15  9:37 ` [PATCH 2/2] Fix the geometry when restoring from zoomed state Pat Thoyts
@ 2009-09-15 14:11   ` Alexey Borzenkov
  2009-09-17 12:15   ` [PATCH 2/2] gitk: " Paul Mackerras
  1 sibling, 0 replies; 16+ messages in thread
From: Alexey Borzenkov @ 2009-09-15 14:11 UTC (permalink / raw)
  To: Pat Thoyts; +Cc: git, Paul Mackerras

On Tue, Sep 15, 2009 at 1:37 PM, Pat Thoyts
<patthoyts@users.sourceforge.net> wrote:
> The patch to handle the geometry of a restored gitk by Alexy Borzenkov
> causes the position of the columns to creep each time the application
> is restarted. This patch addresses this by remembering the application
> geometry for the normal state and saving that regardless of the actual
> state when the application is closed.

I can confirm it works even when the difference between normal and
maximized window are big.

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

* Re: [PATCH 1/2] Work around leftover temporary save file.
  2009-09-15 13:01   ` Alex Riesen
@ 2009-09-15 14:14     ` Alexey Borzenkov
  2009-09-15 15:44       ` Pat Thoyts
  2009-09-15 14:47     ` Pat Thoyts
  1 sibling, 1 reply; 16+ messages in thread
From: Alexey Borzenkov @ 2009-09-15 14:14 UTC (permalink / raw)
  To: Alex Riesen; +Cc: Pat Thoyts, git, Paul Mackerras

On Tue, Sep 15, 2009 at 5:01 PM, Alex Riesen <raa.lkml@gmail.com> wrote:
> On Tue, Sep 15, 2009 at 11:26, Pat Thoyts
> <patthoyts@users.sourceforge.net> wrote:
>>
>> If a file exists and is hidden on Windows the Tcl open command will
>> fail as the attributes provided in the CREAT call fail to match those
>> of the existing file. Forcing removal of the temporary file before we
>> begin solves any problems caused by previous failures to save the
>> application settings. An alternative would be to remove the hidden
>> attribute before calling 'open'.
>>
>> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
>> ---
>>  gitk |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/gitk b/gitk
>> index 1306178..a0214b7 100755
>> --- a/gitk
>> +++ b/gitk
>> @@ -2526,6 +2526,7 @@ proc savestuff {w} {
>>     if {$stuffsaved} return
>>     if {![winfo viewable .]} return
>>     catch {
>> +       if {[file exists ~/.gitk-new]} {file delete -force ~/.gitk-new}
>
> maybe another gitk instance is writing it at exactly same moment
> in time? Writing is known to take a few moments. Especially on Windows.

Then deleting would fail, because on Windows opened files cannot be
deleted (unless they are opened in a special way that permits it).

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

* Re: [PATCH 1/2] Work around leftover temporary save file.
  2009-09-15 13:01   ` Alex Riesen
  2009-09-15 14:14     ` Alexey Borzenkov
@ 2009-09-15 14:47     ` Pat Thoyts
  1 sibling, 0 replies; 16+ messages in thread
From: Pat Thoyts @ 2009-09-15 14:47 UTC (permalink / raw)
  To: Alex Riesen; +Cc: git, Alexy Borzenkov, Paul Mackerras

Alex Riesen <raa.lkml@gmail.com> writes:

>On Tue, Sep 15, 2009 at 11:26, Pat Thoyts
><patthoyts@users.sourceforge.net> wrote:
>>
>> If a file exists and is hidden on Windows the Tcl open command will
>> fail as the attributes provided in the CREAT call fail to match those
>> of the existing file. Forcing removal of the temporary file before we
>> begin solves any problems caused by previous failures to save the
>> application settings. An alternative would be to remove the hidden
>> attribute before calling 'open'.
>>
>> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
>> ---
>>  gitk |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/gitk b/gitk
>> index 1306178..a0214b7 100755
>> --- a/gitk
>> +++ b/gitk
>> @@ -2526,6 +2526,7 @@ proc savestuff {w} {
>>     if {$stuffsaved} return
>>     if {![winfo viewable .]} return
>>     catch {
>> +       if {[file exists ~/.gitk-new]} {file delete -force ~/.gitk-new}
>
>maybe another gitk instance is writing it at exactly same moment
>in time? Writing is known to take a few moments. Especially on Windows.

no - 'open $file w' is translated into O_WRONLY|O_CREAT|O_TRUNC
internally and passed to the win32 layer to get converted to a call to CreateFile with
GENERIC_WRITE, CREATE_ALWAYS and FILE_ATTRIBUTE_NORMAL. The file has
got FILE_ATTRIBUTE_HIDDEN though and as it exists and our attributes
do not match we get failed.
'open $file {O_WRONLY O_TRUNC}' would open it but we'd have to check
for non-existence and redo with O_CREAT if it was not already present.

See tclWinChan.c:TclpOpenFileChannel.

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD

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

* Re: [PATCH 1/2] Work around leftover temporary save file.
  2009-09-15 14:14     ` Alexey Borzenkov
@ 2009-09-15 15:44       ` Pat Thoyts
  0 siblings, 0 replies; 16+ messages in thread
From: Pat Thoyts @ 2009-09-15 15:44 UTC (permalink / raw)
  To: Alexey Borzenkov; +Cc: Alex Riesen, git, Paul Mackerras

Alexey Borzenkov <snaury@gmail.com> writes:

>
>Then deleting would fail, because on Windows opened files cannot be
>deleted (unless they are opened in a special way that permits it).
>

The delete occurs before we attempt to open the file which is why it
succeeds when such file is present.

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD

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

* Re: [PATCH] gitk: restore wm state to normal before saving geometry information
  2009-09-08 19:22 [PATCH] gitk: restore wm state to normal before saving geometry information Alexey Borzenkov
                   ` (2 preceding siblings ...)
  2009-09-15 12:03 ` [PATCH] gitk: restore wm state to normal before saving geometry information Pat Thoyts
@ 2009-09-16 10:21 ` Paul Mackerras
  2009-09-16 21:07   ` Pat Thoyts
  3 siblings, 1 reply; 16+ messages in thread
From: Paul Mackerras @ 2009-09-16 10:21 UTC (permalink / raw)
  To: Alexey Borzenkov; +Cc: git

Alexey Borzenkov writes:

> gitk now includes patches for saving and restoring wm state, however
> because it saves wm geometry when window can still be maximized the
> maximize/restore button becomes useless after restarting gitk (you
> will get a huge displaced window if you try to restore it). This
> patch fixes this issue by storing window geometry in normal state.

Hmmm, shouldn't we be also saving the window state (zoomed/normal) and
restoring that as well?

Paul.

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

* Re: [PATCH] gitk: restore wm state to normal before saving geometry information
  2009-09-16 10:21 ` Paul Mackerras
@ 2009-09-16 21:07   ` Pat Thoyts
  0 siblings, 0 replies; 16+ messages in thread
From: Pat Thoyts @ 2009-09-16 21:07 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Alexey Borzenkov, git

Paul Mackerras <paulus@samba.org> writes:

>> patch fixes this issue by storing window geometry in normal state.
>
>Hmmm, shouldn't we be also saving the window state (zoomed/normal) and
>restoring that as well?
>
>Paul.

We do. That got added in c876dbad

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD

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

* Re: [PATCH 2/2] gitk: Fix the geometry when restoring from zoomed state
  2009-09-15  9:37 ` [PATCH 2/2] Fix the geometry when restoring from zoomed state Pat Thoyts
  2009-09-15 14:11   ` Alexey Borzenkov
@ 2009-09-17 12:15   ` Paul Mackerras
  2009-09-17 13:04     ` Alexey Borzenkov
  2009-09-18 13:24     ` Pat Thoyts
  1 sibling, 2 replies; 16+ messages in thread
From: Paul Mackerras @ 2009-09-17 12:15 UTC (permalink / raw)
  To: Pat Thoyts; +Cc: git, Alexy Borzenkov

Pat Thoyts writes:

> The patch to handle the geometry of a restored gitk by Alexy Borzenkov
> causes the position of the columns to creep each time the application
> is restarted.  This patch addresses this by remembering the application
> geometry for the normal state and saving that regardless of the actual
> state when the application is closed.

So this patch replaces Alexey's patch, then?  The context in your patch
doesn't match the changes made in Alexey's patch AFAICS.

Paul.

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

* Re: [PATCH 2/2] gitk: Fix the geometry when restoring from zoomed  state
  2009-09-17 12:15   ` [PATCH 2/2] gitk: " Paul Mackerras
@ 2009-09-17 13:04     ` Alexey Borzenkov
  2009-09-18 13:24     ` Pat Thoyts
  1 sibling, 0 replies; 16+ messages in thread
From: Alexey Borzenkov @ 2009-09-17 13:04 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Pat Thoyts, git

On Thu, Sep 17, 2009 at 4:15 PM, Paul Mackerras <paulus@samba.org> wrote:
>> The patch to handle the geometry of a restored gitk by Alexy Borzenkov
>> causes the position of the columns to creep each time the application
>> is restarted.  This patch addresses this by remembering the application
>> geometry for the normal state and saving that regardless of the actual
>> state when the application is closed.
>
> So this patch replaces Alexey's patch, then?  The context in your patch
> doesn't match the changes made in Alexey's patch AFAICS.

Yes. Pat's patch replaces my patch.

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

* Re: [PATCH 2/2] gitk: Fix the geometry when restoring from zoomed state
  2009-09-17 12:15   ` [PATCH 2/2] gitk: " Paul Mackerras
  2009-09-17 13:04     ` Alexey Borzenkov
@ 2009-09-18 13:24     ` Pat Thoyts
  1 sibling, 0 replies; 16+ messages in thread
From: Pat Thoyts @ 2009-09-18 13:24 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: git, Alexy Borzenkov

Paul Mackerras <paulus@samba.org> writes:

>Pat Thoyts writes:
>
>> The patch to handle the geometry of a restored gitk by Alexy Borzenkov
>> causes the position of the columns to creep each time the application
>> is restarted.  This patch addresses this by remembering the application
>> geometry for the normal state and saving that regardless of the actual
>> state when the application is closed.
>
>So this patch replaces Alexey's patch, then?  The context in your patch
>doesn't match the changes made in Alexey's patch AFAICS.

Correct. I posted a response to Alexy's patch saying I'd post an
alternative as I had trouble with the columns resizing and creeping
due to the assertion of 'wm state normal' during the settings save
each time.
See
 http://thread.gmane.org/gmane.comp.version-control.git/128026/focus=128652
The context of mine should be the gitk repository master (was
c21398be).

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD

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

end of thread, other threads:[~2009-09-18 13:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08 19:22 [PATCH] gitk: restore wm state to normal before saving geometry information Alexey Borzenkov
2009-09-15  9:26 ` [PATCH 1/2] Work around leftover temporary save file Pat Thoyts
2009-09-15 13:01   ` Alex Riesen
2009-09-15 14:14     ` Alexey Borzenkov
2009-09-15 15:44       ` Pat Thoyts
2009-09-15 14:47     ` Pat Thoyts
2009-09-15  9:37 ` [PATCH 2/2] Fix the geometry when restoring from zoomed state Pat Thoyts
2009-09-15 14:11   ` Alexey Borzenkov
2009-09-17 12:15   ` [PATCH 2/2] gitk: " Paul Mackerras
2009-09-17 13:04     ` Alexey Borzenkov
2009-09-18 13:24     ` Pat Thoyts
2009-09-15 12:03 ` [PATCH] gitk: restore wm state to normal before saving geometry information Pat Thoyts
2009-09-15 12:54   ` Alexey Borzenkov
2009-09-15 13:58     ` Alexey Borzenkov
2009-09-16 10:21 ` Paul Mackerras
2009-09-16 21:07   ` Pat Thoyts

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).