git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mark Levedahl" <mdl123@verizon.net>
To: git@vger.kernel.org
Subject: Re: [PATCH] Make gitk save and restore the user set window position.
Date: Thu, 8 Feb 2007 11:55:28 -0500	[thread overview]
Message-ID: <eqfkm4$fd3$1@sea.gmane.org> (raw)
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...
>>
>> 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 

  reply	other threads:[~2007-02-08 16:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-08  5:43 [PATCH] Make gitk save and restore the user set window position Brett Schwarz
2007-02-08 16:55 ` Mark Levedahl [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-02-11 14:27 Mark Levedahl
2007-02-11 14:27 ` Mark Levedahl
2007-02-11 21:49 ` Junio C Hamano
2007-02-07  3:21 Junio C Hamano
2007-02-07  5:40 ` Shawn O. Pearce
2007-02-08  0:30   ` Mark Levedahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='eqfkm4$fd3$1@sea.gmane.org' \
    --to=mdl123@verizon.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).