XmFileSelectionBox creates odd black lines

Hi everyone,

In the Motif example program show_files.c there is a function:

dialog = XmCreateFileSelectionDialog(toplevel, "filesb", NULL, 0);

This works fine on FC1 and Fedora 9 but it causes these black lines to appear when the window is resized when using Vector Linux:

http://maxhost.org/other/motif-prob.png

I'm also seeing a fair number of warnings when compiling this (probably quite old) examples of Motif code:

"warning: passing arg 3 of 'XtAddCallback' from incompatible pointer type"

I would be grateful for any suggestions,
Thanks,
Mark


fredk

fredk's picture

Warning message indicates

Warning message indicates that you have not properly specified the callback proc (argument 3 of XtAddCallback)

Make sure you have declared it as
void MyCallbackProc (Widget w, XtPointer clientData, XtPointer callData )