Path: utzoo!utgpu!watmath!iuvax!purdue!decwrl!gilroy.pa.dec.com!klee From: klee@gilroy.pa.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Getting the server defaults Message-ID: <1625@bacchus.dec.com> Date: 26 Jul 89 23:39:09 GMT References: Sender: news@decwrl.dec.com Distribution: comp Lines: 18 In article , austin@lily.ucdavis.edu (Darren Austin) writes: > In the book "Xlib Programming Manual" by Adrian Nye > (O'Reilly & Associates, Inc.) on page 345, it is shown how to get > the defaults set by the user (using xrdb) from the server. > Apparently these defaults are a string stored in the > display->xdefaults field. The book mentions that referencing > this value directly is not a good idea as the name of the field > may change in later releases. However, it goes on to mention > that there is no macro under X11 release 2 that does this for > you. The X11R3 function XResourceManagerString(display) returns the resource list set for a particular display. For most applications, the XGetDefault() function is a simpler interface to the resources. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@decwrl.dec.com uucp: uunet!decwrl!klee