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

Re: [PATCH] Clean up geometry save code in gitk.

From
Mark Levedahl <mdl123@verizon.net>
Date
Feb 11, 2007, 17:44 UTC
Message-ID
<45CF55E3.9080508@verizon.net>
In-Reply-To
<20070211195643.b1f548f2.vsu@altlinux.ru>
Sergey Vlasov wrote:
Show 21 quoted lines
> These two patches fix saving of the window position for me; however,
> some things still remain broken:
>
>  - No matter what sizes of the commit tree, patch and filelist panes I
>    set, on gitk restart they come up with their default sizes.
>
>  - Sizes of commit tree columns are not saved properly - on every gitk
>    restart the dividers are shifting more and more to the right.
>
> This is on Linux (x86_64) with Tk 8.4.13.
>
> I made two more patches which fix the above problems for me - please
> test them (in particular, someone needs to check that the Cygwin
> support is not broken - apparently something is different between Tk
> on Linux and Cygwin to create the problem with commit tree columns).
>
> See the followup messages.
>
> --
> Sergey Vlasov
>   
I could not actually apply your patches, but your suggested changes were 
simple enough to apply by hand:
1) I do notice the change in size of panes in the upper window on Cygwin 
(hadn't noticed before but it is there), and your "-highlightthickness 
0" tweak fixes that. Just for grins, I tried reenabling the "subtract 2" 
strategy in place before, and that only makes the problem worse on Cygwin.
2) I don't see any effect of the "pane configure" tweak on Cygwin. 
Haven't checked on Linux (don't have that here) so cannot comment.

Gotta say, the more I play with Tk, the more I wonder why anyone uses anything else ;-) .

Mark
Previous: Sergey VlasovNext: Junio C Hamano
Message 7 of 8 in “Make gitk save and restore the user set window position.”
  1. Make gitk save and restore the user set window position.Mark Levedahl, Feb 11, 2007
  2. Make gitk save and restore the user set window position.Mark Levedahl, Feb 11, 2007
  3. Clean up geometry save code in gitk.Mark Levedahl, Feb 11, 2007
  4. Sergey VlasovFeb 11, 2007
  5. gitk: Fix restoring of pane sizesSergey Vlasov, Feb 11, 2007
  6. gitk: Fix restoring of column widths in the commit treeSergey Vlasov, Feb 11, 2007
  7. Mark LevedahlFeb 11, 2007
  8. Junio C HamanoFeb 11, 2007

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.