public inbox for insight-prs@sourceware.org
help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: nobody@sources.redhat.com
Cc: insight-prs@sources.redhat.com,
Subject: Re: insight/131: Dismissing an int 3 dialog box
Date: Fri, 22 Mar 2002 13:43:00 -0000	[thread overview]
Message-ID: <20020322214302.10375.qmail@sources.redhat.com> (raw)

The following reply was made to PR insight/131; it has been noted by GNATS.

From: Keith Seitz <keiths@redhat.com>
To: <fred@nextnewgig.com>
Cc: <insight-gnats@sources.redhat.com>
Subject: Re: insight/131: Dismissing an int 3 dialog box
Date: Fri, 22 Mar 2002 13:42:09 -0800 (PST)

 On 4 Mar 2002 fred@nextnewgig.com wrote:
 
 >  can't resolve scoped variable "@itcl ::.warningdlg0.warningdlg ::ModalDialog::unpost_notification": can't find object ::.warningdlg0.warningdlg
 >      while executing
 >  "set {@itcl ::.warningdlg0.warningdlg ::ModalDialog::unpost_notification} 1"
 >      ("after" script)errorCode is NONE
 
 Ok, I think I've figured this out. ModalDialog::unpost was being called
 twice for the WarningDialog. <Return> in the warning dialog was bound to
 invoke the button. But the button is the only button (and starts with the
 focus), so it was being invoked via a default binding.
 
 I've "fixed" this by having <Return> not run any other bindings. This
 doesn't seem to affect current trunk sources, so I am not going to check
 anything in there.
 
 Apply this patch in src/gdb/gdbtk and re-install gdb. Please let me know
 if this fixes the problem for you.
 
 Keith
 
 Index: library/warning.tcl
 ===================================================================
 RCS file: /cvs/src/src/gdb/gdbtk/library/warning.tcl,v
 retrieving revision 1.1.1.1
 diff -u -p -r1.1.1.1 warning.tcl
 --- library/warning.tcl	2000/02/07 00:19:42	1.1.1.1
 +++ library/warning.tcl	2002/03/22 21:37:49
 @@ -88,7 +88,7 @@ body WarningDlg::constructor {args} {
 
    button $itk_interior.f.b.ok -text OK -underline 0 -command [code $this unpost]
    bind $itk_interior.f.b.ok <Return> \
 -    "$itk_interior.f.b.ok flash; $itk_interior.f.b.ok invoke"
 +    "$itk_interior.f.b.ok flash; $itk_interior.f.b.ok invoke; break"
    focus $itk_interior.f.b.ok
 
    if {$ignorable != ""} {
 


             reply	other threads:[~2002-03-22 21:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-22 13:43 Keith Seitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-03-22 13:50 kseitz
2002-03-04  8:33 fred

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=20020322214302.10375.qmail@sources.redhat.com \
    --to=keiths@redhat.com \
    --cc=insight-prs@sources.redhat.com \
    --cc=nobody@sources.redhat.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).