Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!VOR.CSS.GOV!pete From: pete@VOR.CSS.GOV (Pete Ware) Newsgroups: comp.windows.x Subject: List widget bug Message-ID: <8906062326.AA09439@vor.css.gov> Date: 6 Jun 89 23:26:29 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 74 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");