[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exmh-users
Subject:    tk 8.0 popup menu bug/patch
From:       Tim Medley <m1tlm00 () FRB ! GOV>
Date:       1997-08-29 18:34:05
[Download RAW message or body]

This is a multipart MIME message.


When displaying the ispell popup for a misspelled word, I was getting the 
attached error dialog. (Other menu related strangeness followed at least one 
time.)

I think there's a simple typo in Tk 8.0 in the "tk_popup" Tk library procedure
in "lib/tk8.0/menu.tcl."  I'm attaching a patch.

- Tim




["464" (message/rfc822)]

Return-Path: m1tlm00@ccgate 
Return-Path: <m1tlm00@ccgate>
Received: from frbgate.FRB.GOV by alberech.FRB.GOV (SMI-8.6/SMI-SVR4)
	id KAA14985; Fri, 29 Aug 1997 10:25:47 -0400
Received: from alberech.FRB.GOV by frbgate.FRB.GOV (4.1/SMI-4.0)
	id AA01174; Fri, 29 Aug 97 10:26:08 EDT
Received: from alberech by alberech.FRB.GOV (SMI-8.6/SMI-SVR4)
	id KAA14981; Fri, 29 Aug 1997 10:25:45 -0400
Message-Id: <199708291425.KAA14981@alberech.FRB.GOV>
To: tmedley@FRB.GOV
Subject: error exmh 2.0zeta 7/24/97
Date: Fri, 29 Aug 1997 10:25:43 -0400
From: Tim Medley <m1tlm00@ccgate>
Content-Type: text
Content-Length: 513

 


Fri Aug 29 10:25:42 EDT 1997
m1tlm00 got an error
Exmh version 2.0zeta 7/24/97
TK version 8.0
TCL version 8.0
SunOS alberech 5.5 Generic sun4m sparc SUNW,SPARCstation-5

invalid command name "tk_menuSetFocus(.sedit20.f.t.m)"
    while executing
"tk_menuSetFocus($menu)"
    (procedure "tk_popup" line 12)
    invoked from within
"tk_popup $menu $X $Y "
    (procedure "IspellPostMenuChoices" line 95)
    invoked from within
"IspellPostMenuChoices .sedit20.f.t 573 148 1018 555 "
    (command bound to event)

["menu.tcl.patch" (application/x-patch)]

*** share/menu.tcl	Wed Aug 27 18:22:06 1997
--- menu.tcl	Fri Aug 29 13:41:31 1997
***************
*** 1187,1192 ****
  	tkSaveGrabInfo $menu
  	grab -global $menu
  	set tkPriv(popup) $menu
! 	tk_menuSetFocus($menu);
      }
  }
--- 1187,1192 ----
  	tkSaveGrabInfo $menu
  	grab -global $menu
  	set tkPriv(popup) $menu
! 	tk_menuSetFocus $menu;
      }
  }


Tim Medley                 Automation and Research Computing
tlm@frb.gov                Board of Governors of the Federal Reserve System
(202) 452-3148             Washington, D.C.  20551
---------------------------------------------------------------------------
         Between the wish and the thing, the world lies waiting.
                         - Cormac McCarthy -


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic