public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Graham Swallow <Information-Cascade@ntlworld.com>
To: insight@sources.redhat.com
Subject: insight combobox error (wont go away) no such variable grabstatus
Date: Mon, 07 Oct 2002 08:57:00 -0000	[thread overview]
Message-ID: <20021007165805.4a016d7a.Information-Cascade@ntlworld.com> (raw)

With my current glibc/X11 versions, I get a combo-box
problem with insight - the combobox wont close, reports
a stack trace, saying no such variable as "grabstatus".
The problem get better with this line that sets the
variable if it hasnt been set. You would probably go
back to the root-cause which might be the foreach
never lappend-ing anything in the first place.

I dont know why this happens now, when it never used to,
but it does.

--
   Graham
   Information-Cascade@ntlworld. c o m


PATCH to $PREFIX/share/redhat/gui

--- .combobox.tcl	Wed Sep 25 11:57:51 2002
+++ combobox.tcl	Mon Oct  7 15:05:30 2002
@@ -792,6 +792,7 @@
 	    # *gasp* do a global grab!!! Mom always told not to
 	    # do things like this... :-)
 	    set grablist [grab current]
+# is this maybe not set
 	    foreach grabitem $grablist {
 		lappend grabstatus [grab status $grabitem]
 	    }
@@ -810,6 +811,8 @@
 	    }
 	    # hides the listbox
 	    grab release $widgets(this)
+#
+if [ info exists grabstatus ] {} {set grabstatus {} }
 	    foreach grabitem $grablist itemstatus $grabstatus {
 		if {$itemstatus == "global"} {
 	           grab set -global $grabitem

             reply	other threads:[~2002-10-07 15:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-07  8:57 Graham Swallow [this message]
2002-10-07  9:04 ` Keith Seitz

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=20021007165805.4a016d7a.Information-Cascade@ntlworld.com \
    --to=information-cascade@ntlworld.com \
    --cc=insight@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).