pete@VOR.CSS.GOV (Pete Ware) (06/07/89)
X Window System Bug Report
xbugs@expo.lcs.mit.edu
VERSION:
R3
CLIENT MACHINE and OPERATING SYSTEM:
Sun 3/110 (and most others)
DISPLAY:
Sun CG4 (and most others)
WINDOW MANAGER:
awm (and any other)
AREA:
Xaw
SYNOPSIS:
List widget uses int instead of Dimension in XtMakeResizeRequest()
DESCRIPTION:
REPEAT BY:
Make a List widget a child of a Viewport widget with
allowVert:True. Add more than one item to the list with
XtListChange(). The List widget will display only one item
because the resize request failed.
SAMPLE FIX:
Change the w_ret and h_ret in ChangeSize() to type Dimension
instead of int
diff -c -b List.c /usr/src/X.V11R3/sun3-os3/src/lib/Xaw/List.c
*** List.c Tue Jun 6 15:38:21 1989
--- /usr/src/X.V11R3/sun3-os3/src/lib/Xaw/List.c Thu Apr 13 09:35:42 1989
***************
*** 240,246 ****
Widget w;
int width, height;
{
! Dimension w_ret, h_ret;
(void) Layout(w, FALSE, FALSE, &width, &height);
--- 240,246 ----
Widget w;
int width, height;
{
! int w_ret, h_ret;
(void) Layout(w, FALSE, FALSE, &width, &height);
***************
*** 253,260 ****
XtWarning("Size Changed when it shouldn't have...");
XtWarning("when initializing the List Widget");
}
! (void) XtMakeResizeRequest(w, w_ret, h_ret, (Dimension *)NULL,
! (Dimension *) NULL);
break;
default:
XtWarning("Unknown geometry return in List Widget");
--- 253,259 ----
XtWarning("Size Changed when it shouldn't have...");
XtWarning("when initializing the List Widget");
}
! (void) XtMakeResizeRequest(w, w_ret, h_ret, NULL, NULL);
break;
default:
XtWarning("Unknown geometry return in List Widget");