ken@richp1.UUCP (Ken Marks) (07/08/88)
Allowing for my extreme ignorance of X and groveling an sniveling before the feet of anyone who might be upset at possibly seeing any of these problems posted to the net before, I would like to list a couple of the things we have found while working with X11R2 on our Sun 3's. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1) Form Widgets shrink to fit but this is not stated in the X Toolkit Widgets manual like it is for the Box Widget. (After a bit of confusion we figured this out by looking at the source code.) 2) On pages 20 and 21 of the X Toolkit Widgets manual, a table of default Text Widget instance information is given. The entries XtNtextSource and XtNtextSink say "See below" but the information has been omitted. 3) On page 31 of the X Toolkit Widgets manual the "convenience" function XtDialogCreate is described. This does not appear to be in any of the X libraries as a function nor does it appear to be a macro as it is not found in any of the header files. 4) While creating a viewport Widget we encountered a core dump when setting the resource argument XtNforceBars to True. After looking at the source code in file .../lib/Xaw/Viewport.c, we determined the following: In the procedure Initialize, The Widget w->viewport.clip is set to NULL and is then referenced in CreateScrollBar causing the segmentation violation. 5) Also Within procedure Initialize, it is seen that when the "forcebars" is set True, the Viewport Widget is checked for both horizontal and vertical bar options. CreateScrollbar is passed a Boolean flag that determines which type of bar to create (True for horizontal, False for vertical). For both options, the horizontal flag (True) is passed. 6) On page 60 of the X Toolkit Intrinsics manual, the Callback procedure for file events (InputCallbackProc) incorrectly lists the last 2 arguments. The address of the source and id are returned and they must be dereferenced before use. < int source; < XtInputId id; --- > int *source; > XtInputId *id; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DISCLAIMER: If any of these turn out to be ligit probs, then I'm glad to bring them to someones attention. If not then flame me...It can't get any hotter than it already is here... -- ------------------------------------------------------------------------------- Ken Marks ::= ken@richp1.UUCP | ihnp4!richp1!ken -------------------------------------------------------------------------------