Alexander and lesstif friends,
I went ahead and added the code to support a work area widget in the
FileSelectionBox. It seems to work fine with my software (that would previously
break ;).
I haven't coded in C in a long time, but I didn't have to make too many
changes. Hopefully you can integrate this fix into the distributed lesstif
version - I'd rather have a version from lesstif.org than my own branch. Ah,
the wonders of open-source ;)
I don't a CVS version of the source, just lesstif-0.92.32 source. I changed the
files FileSBP.h and FileSB.c. They should be apended to this message.
Thanks,
-chris
--- Alexander Mai <[EMAIL PROTECTED]> wrote:
> Citing from comp.windows.x.motif:
>
> >Anyone have a clue why these commands would give me different results
> >on different platforms:
> >
> >dialog = XmCreateFileSelectionDialog (shell, "filesb", NULL, 0);
> >Widget form=XmFileSelectionBoxGetChild(dialog, XmDIALOG_WORK_AREA);
> >if (!form)
> > form=XtVaCreateManagedWidget("form", xmFormWidgetClass, dialog,
> >NULL);
> >form=XmFileSelectionBoxGetChild(dialog, XmDIALOG_WORK_AREA);
> >if (!form) exit(1);
> >
> >On Linux (Lesstif 0.92 - current version) the program exits, but on
> >Irix 6.5 it works fine. Am I missing something simple here?
>
>
> Yes, a quick look shows that we don't handle this at all
> (namely that argument to that function). Sounds like a fix which requires
> not too many lines of code, but who knows ... ;-)
>
>
> --
> Alexander Mai
> [EMAIL PROTECTED]
=====
"Any sufficiently advanced technology is indistinguishable from magic." -Arthur C.
Clarke
Chris Chuter
Magic Earth, LLC
[EMAIL PROTECTED]
http://www.magic-earth.com/
__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/
my_lesstif_fix.tar.gz