dwilbert@bbn.com (Deborah Wilbert) (01/20/89)
Hi, y'all. I'm a new X user, running R3 on a Masscomp. What I've seen looks spiffy and things have gone generally smoothly. I'm trying to use xfig, but I've hit a problem. main.c declares XtDefaultDB extern, but it isn't found at load time. Does anyone know where it is declared? I tried commenting out references to it, and running the resulting program. In general things work, but 1) I don't know how to make the Save/Restore/... etc menu appear and 2) hitting M3 makes the program crash. Correct me if I'm wrong, but I assume all this is related, i.e, if I had XtDefaultDB declared, M3 would not crash but would produce the desired menu. Also, is there a user's guide online? I couldn't find any documentation. I also have an unrelated question. Is there a utility for creating images like those found in the directory, X11R3/source/core/X11/bitmaps in the R3 release? I've been trying out some of the programs in the clients, demos, etc subdirectories (under contrib and source), but there's lots to look through. Thanks! -Deborah
swick@ATHENA.MIT.EDU (Ralph R. Swick) (01/20/89)
> main.c declares XtDefaultDB extern, but it isn't found at load time. XtDefaultDB was an internal symbol in the R2 Xt, not supposed to be referenced by applications; replace it with XtDatabase(XtDisplay(toplevel)) where 'toplevel' is the widget instance returned by XtInitialize. > Is there a utility for creating [bitmaps] see bitmap(1) (i.e. clients/bitmap)
pete@sun360.Online.Nixdorf.De (pete delany) (02/02/89)
In article <8901201323.AA14953@LYRE.MIT.EDU>, swick@ATHENA.MIT.EDU (Ralph R. Swick) writes: > XtDefaultDB was an internal symbol in the R2 Xt, not supposed to be > referenced by applications; replace it with XtDatabase(XtDisplay(toplevel)) > where 'toplevel' is the widget instance returned by XtInitialize. > > > Is there a utility for creating [bitmaps] > > see bitmap(1) (i.e. clients/bitmap) Added #define XtRFloat "Float" to the StringDefs.h file. Needed to declate extern XrmDatabase XtDatabase() in main.c Crashed on both Sun and Pyramid when using the right mouse button... root@relay # xfig Initializing FIG 1.4.3 (X11) ... X Protocol error: BadRequest, invalid request code or no such operation Major opcode of failed request: 0 () Minor opcode of failed request: 0 Resource id in failed request: 0x1100047 Serial number of failed request: 1139 Current serial number in output stream: 1145 Pete Delaney - Nixdorf UCC | pete@NIXCTC.DE Prefered Addr Loffel Strasse 3 | pyramid!nixctc!pete UUCP from Calf 7000 Stuttgart 70 | pete@RELAY.HUJI.AC.IL Backup Address West Germany | Phone: +49 (711) 7685-128