From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4612 invoked by alias); 7 Oct 2002 15:57:55 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 4601 invoked from network); 7 Oct 2002 15:57:53 -0000 Received: from unknown (HELO mta07-svc.ntlworld.com) (62.253.162.47) by sources.redhat.com with SMTP; 7 Oct 2002 15:57:53 -0000 Received: from sky ([80.5.144.152]) by mta07-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20021007155752.DAGL28004.mta07-svc.ntlworld.com@sky> for ; Mon, 7 Oct 2002 16:57:52 +0100 Date: Mon, 07 Oct 2002 08:57:00 -0000 From: Graham Swallow To: insight@sources.redhat.com Subject: insight combobox error (wont go away) no such variable grabstatus Message-Id: <20021007165805.4a016d7a.Information-Cascade@ntlworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-q4/txt/msg00015.txt.bz2 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