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

Re: [PATCH] Make gitk save and restore the user set window position.

From
Mark Levedahl <mdl123@verizon.net>
Date
Feb 8, 2007, 16:55 UTC
Message-ID
<eqfkm4$fd3$1@sea.gmane.org>
In-Reply-To
<491753.81112.qm@web38915.mail.mud.yahoo.com>

"Brett Schwarz" <brett_schwarz@yahoo.com> wrote in message news:491753.81112.qm@web38915.mail.mud.yahoo.com...

Show 21 quoted lines
>>
>> Mark
>>
>
> I've only been half following this thread, so I apologize if this was 
> already talked about.
>
> Have you tried [wm protocol] command. You would use it like this:
>
>    wm protocol . WM_DELETE_WINDOW do_quit
>
> This basically traps the signal from the windowmanager, and [do_quit] 
> gets executed *before* the gui is torn down. The only bad thing about 
> this, is if you explicitly destroy a widget inside your code (i.e. 
> [destroy .]), then this will *not* get invoked. You also need to make 
> sure you catch any possible errors in do_quit, otherwise the gui will 
> hang.
>
> HTH,
>    --brett
>

Thank you - that is exactly what I was looking for but couldn't find. I'll generate another patch tonight.

Mark 
Previous: Brett Schwarz
Message 2 of 2 in “Re: [PATCH] Make gitk save and restore the user set window position.”
  1. Brett SchwarzFeb 8, 2007
  2. Mark LevedahlFeb 8, 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.