[comp.windows.x] Bug in Xt/Xaw

net@TUB.BITNET (Oliver Laumann) (12/07/88)

All Athena widgets add their resource converters by a call to
XtAddConverter() from within their class_initialize functions.
This doesn't seem to be right, since XtAddConverter() adds the
converter to a `default application context', *not* to the
application context to which widgets of the class actually belong.

As a result, the widgets cannot be used together with explicitly
created application contexts, since the converters are added to
the wrong application context.

It is totally unclear to me how this can ever be fixed, since the
`right' application context is not available within the
class_initialize function, so that XtAppAddConverter() cannot be used
here.  The problem seems to be that converters are attached to
application contexts; shouldn't they be a global resource instead?

Regards,
--
Oliver Laumann              net@TUB.BITNET              net@tub.UUCP

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (12/07/88)

    The problem seems to be that converters are attached to
    application contexts; shouldn't they be a global resource instead?

Good question.  This is a known problem, and your suggestion is
perhaps the most likely solution.  I expect we'll see this issue
arise formally in the X Consortium in the near future.