Date: Wed, 7 Jan 1998 21:47:25 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: dap@damon.com (Damon Anton Permezel) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Motif question Message-ID: <199801072147.OAA10235@usr06.primenet.com> In-Reply-To: <199801062344.RAA09428@damon.com> from "Damon Anton Permezel" at Jan 6, 98 05:44:12 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> From the java:awt_util.c source, it thinks the struct, which hangs off a > vendor specific field in the widget struct > > ve = (XmVendorShellExtObject) extData->widget; > if ((im_info = (XmImInfo *) ve->vendor.im_info) == NULL) > return NULL; > else > return im_info->iclist; This is actually an error in the java:awt_util.c source. This is an opaque strucutre, and therefore Java is not allowed to look in it, or it becomes implementation dependent. moxFTP does the same type of crap with internal fontlists for a widget subclasssed (improperly, IMO) off a text input box instead of off of a File Selector or something else, making it a badly behaved application as well. > It picks up the `iclist', (random garbage) and faults. > > Obviously, the java:awt port for FreeBSD based on lesstif-0.81 should be > modified, but I would appreciate if anyone could provide me any pointers > so I could have the faintest idea as to what the hell is going on here. > I really don't want to have to live-and-breathe Motif, but I would like a > glimmer of understanding as to the issues here. This is an icon manager icon list. It assumes you can reparent the management of icons by the icon manager. I'd be interested in what the heck JAVA thinks it's doing here. Whatever it's doing... it's wrong to be doing the way it is doing it. The "correct" way would probably be to subclass, or, more likely, rewrite the widget whose internals it's trying to peek into. 8-(. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801072147.OAA10235>