home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / openloo / 5019 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.7 KB  |  59 lines

  1. Newsgroups: comp.windows.open-look
  2. From: bryan@alex.com (Bryan Boreham)
  3. Path: sparky!uunet!pipex!demon!alex.com!bryan
  4. Subject: Re: OLIT in Solaris 2.1
  5. Nntp-Posting-Host: felix
  6. Organization: Alex Technologies Ltd, London, England
  7. References:  <18352@autodesk.COM>
  8. Apparently-To: mail2news@demon.co.uk
  9. Date: Mon, 11 Jan 1993 19:11:26 +0000
  10. Message-ID: <1993Jan11.191126.2010@alex.com>
  11. Sender: usenet@demon.co.uk
  12. Lines: 45
  13.  
  14. In article <18352@autodesk.COM>, stevel@Autodesk.COM (Steven W. Litras) writes:
  15. |> Hey everyone, pardon if this has become a FAQ, but has anyone else seen 
  16. |> Scrolling List widgets Segment Faulting under OLIT in solaris 2.1? If
  17. |> so, is there a workaround?
  18.  
  19. Oh yes, within hours of installing from the CD.  I reported it
  20. to my Sun contact, but am yet to hear of any fix or work-around.
  21. Maybe my problem is different from yours:  mine is only when mouseless
  22. is True, and the widget gets given focus.
  23.  
  24. To save time for others who want to report the bug, I attach
  25. my example program.  Maybe someone at Sun closer to OLIT support
  26. will take notice?
  27.  
  28. Bryan Boreham (bryan@alex.com)
  29.  
  30. --------------------------------------------------------------------
  31. #include <X11/Intrinsic.h>
  32. #include <Xol/OpenLook.h>
  33. #include <Xol/ScrollingL.h>
  34.  
  35. /* From ALEX Technologies Ltd, 12/22/92
  36.    Run as:
  37.  
  38.         slcrash -xrm '*mouseless: True'
  39.  
  40.    for me, it core-dumps when the window is given focus.
  41. */
  42.  
  43. int
  44. main (argc, argv)
  45.      int argc;
  46.      char **argv;
  47. {
  48.   Widget toplevel;
  49.  
  50.   toplevel = OlInitialize("alex", "Alex", NULL, 0, (Cardinal*)&argc, argv);
  51.  
  52.   XtCreateManagedWidget ("list", scrollingListWidgetClass, toplevel, NULL, 0);
  53.  
  54.   XtRealizeWidget (toplevel);
  55.  
  56.   XtMainLoop();
  57.   return 0;
  58. }
  59.