Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!keith From: keith@EXPO.LCS.MIT.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: Does anyone have a fix for R4/PL1 XGetDefault? Message-ID: <9002200431.AA16109@expo.lcs.mit.edu> Date: 20 Feb 90 04:31:37 GMT References: <49250@lll-winken.LLNL.GOV> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 18 > Also, what are the fundamental objections to making XGetDefault handle > multi-level resources. If the X Consortium is really planning on nuking > XGetDefault, I hope they are planning on replacing it with something > simple to use for simple (or in awm's case, dynamic) cases. One could always use the Xrm functions XrmGetResource or XrmQGetResource. A nice feature of using the XrmQGetResource function would be that the application could save a considerable number of XrmStringToQuark calls. To initialize the database you'd need to call XGetDefault on some bogus resource (or duplicate the code from mit/lib/X/XGetDflt.c), then use dpy->db for the Xrm functions. I believe the Xrm functions are documented in the Xlib manual. Keith Packard MIT X Consortium