Same configuration from the previous post. Ubuntu 10.04, ns-allinone-2.33. When nam is run, the following error message appears.
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
After reading some forum posts, I wondered it would be nice to give a shot with patching tk-8.4.18. To tell you the truth, I don't have a clue why I am going to patch tk-8.4.18 when I have problems with nam. Anyway, I followed some steps and tried to change the file named tk.h which locates under ns-allinone-2.33/tk-8.4.18.
From the following code:
/*
*---------------------------------------
*
* Extensions to the X event set
*
*---------------------------------------
*/
#define VirtualEvent (LASTEvent)
#define ActivateNotify (LASTEvent + 1)
#define DeactivateNotify (LASTEvent + 2)
#define MouseWheelEvent (LASTEvent + 3)
#define TK_LASTEVENT (LASTEvent + 4)
#define MouseWheelMask (1L <<>
#define ActivateMask (1L <<>
#define VirtualEventMask (1L <<>
#define TK_LASTEVENT (LASTEvent + 4)
to this code.
/*
*-----------------------------------
*
* Extensions to the X event set
*
*-----------------------------------
*/
/*#define VirtualEvent (LASTEvent)
#define ActivateNotify (LASTEvent + 1)
#define DeactivateNotify (LASTEvent + 2)
#define MouseWheelEvent (LASTEvent + 3)
#define TK_LASTEVENT (LASTEvent + 4)*/
#define VirtualEvent (MappingNotify + 1)
#define ActivateNotify (MappingNotify + 2)
#define DeactivateNotify (MappingNotify + 3)
#define MouseWheelEvent (MappingNotify + 4)
#define TK_LASTEVENT (MappingNotify + 5)
#define MouseWheelMask (1L <<>
#define ActivateMask (1L <<>
#define VirtualEventMask (1L <<>
//#define TK_LASTEVENT (LASTEvent + 4)
Actually, the original post has a file that can patch easily. After the alteration, nam runs smoothly.
Reference: http://www.linuxquestions.org/questions/aix-43/ns2-33-intallation-and-path-setting-818634/#4
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment