[comp.windows.x.motif] Adapting Custom Widgets to Work Under Motif 1.1.1

boyd@jpl-devvax.JPL.NASA.GOV (Bonnie L. Boyd) (12/18/90)

greetings,

i don't read this group frequently so please forgive me if this question
has already been asked and answered...

my software development group has written 12 custom widgets (subclassed
from the motif widget set) for our own specialized applications. for the most
part, these widgets are "compound" (they contain additional sub-widgets such
as push buttons and sliders instantiated within the main widget class)
and are subclassed from the motif XmBulletinBoard widget class. 

under motif 1.0, these widgets performed (relatively) flawlessly. now, however,
our development system has been changed to motif 1.1.1 and our widget set
no longer works. the compilation and linking aspect goes forward nicely,
however, an execution of an application using our widgets causes core dumps in
the creation of our widgets subclassed from the XmBulletinBoard widget.
specifically, the core dump occurs in the function _XmGetDefaultFontList.

as many of you might know, in version 1.1.1, the XmBulletinBoard class now
has three font lists: textFontList, buttonFontList, and labelFontList.
when one creates a bulletin board in an application, the initialize method for
bulletin board inherits proper default font lists from its parent or ancestors;
unfortunately, when one uses XmBulletinBoard as a widget super-class, the
bulletin board class has no actual parent, and so a bogus font list is
passed into the intialize method, and a core dump occurs. unfortunately,
i can't create a "good" fontlist in my widget, because the initialize for
XmBulletinBoard is called before the initialize for my widget class. i`ve
attempted to alter the ResConvert.c motif 1.1.1 file in which 
_XmGetDefaultFontList is defined (we have motif source), but, so far, i've
had no success getting XmBulletinBoard to successfully initialize.

has anyone else run into this problem with motif 1.1.1? as i mentioned before,
our widgets worked succesfully in motif 1.0

any and all suggestions sent via email would be highly appreciated, since i'm
expected to solve this problem and deliver the solution in our next application
version this friday!

(btw, we are running motif 1.1.1 on sun sparcs (+1) and sun3's, using cc 
compiler, with the -D_NO_PROTO option.)

many thanks!

Bonnie L. Boyd
boyd@jpl-devvax.JPL.NASA.GOV
818.354-0376