|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2142 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 2142.
Report 2142 Actions
Problem Report Number 2142 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0609 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Motif Toolkit Certification Program The Open Brand certification program Test Suite VSM version 4.0.0 Test Identification funcs/XmScrolledWindowSetAreas 1-3 Problem Summary PG4M.00005 This is the fault of test case. The test purpose or assertion itself is wrong. If we pass in a NULL value for horizontal ,vertical scrollbar or work_region, the system does change the corresponding wi... Problem Text
This is the fault of test case. The test purpose or assertion itself
is wrong. If we pass in a NULL value for horizontal ,vertical scrollbar or
work_region, the system does change the corresponding widget to be NULL.
^^^^
The Motif Reference Manual for OSF/Motif Release 1.2 ONLY says: for
^^^^
horizontal_scrollbar, vertical_scrollbar, work_region widgets, "If a particular
ScrolledWindow does not have one of these regions, the corresponding argument
can be specified as NULL".
It will be very clear if you look at the source code for
XmScrolledWindowSetAreas which is defined in ScrolledW.c of Xm lib. Here is
the code to set up horizontal_scrollbar and so on:
if (sw->swindow.WorkWindow != wregion)
{
..............................
sw->swindow.WorkWindow = wregion;
/* set the work_region widget to be the value passed in */
}
..............................
sw->swindow.hScrollBar = (XmScrollBarWidget) hscroll;
sw->swindow.vScrollBar = (XmScrollBarWidget) vscroll;
/* set the horizontal_scrollbar and vertical_scrollbar
to be the values passed in */
Also There is a problem in msg_failure() func. If we pass in a NULL
widget ID for horizontal_scrollbar, vertical_scrollbar or work_region widget,
the "child_window" ID in the test1A, test2A or test3A should be 0, and you
can use such code to check after the msg_failure() which fails:
printf("child_window ID is %d 0, child_window);
but msg_failure() function print out some magic number.Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We recommend this request be refused.
The NULL values passed to XmScrolledWindowSetAreas for
horizontal_scrollbar, vertical_scrollbar and work_region indicate the
caller does not wish to alter the corresponding area of the
ScrolledWindow widget.
On the implementation under test the call to XmScrolledWindowSetAreas
when passed a NULL for any of the three areas places the value NULL
for the corresponding resource.
As per the X/Open specification the XmScrolledWIndowSetAreas call
cannot be used to set NULL values for the three areas. The
XmScrolledWindowSetAreas description states:
Each widget is optional and may be passed as NULL.
Setting the resource value to NULL can be achieved by setting the
resource value directly using XtSetValues.
The error in msg_failure output will be fixed in the next release.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 2142
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority