Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!hc!lll-winken!uunet!kddlab!titcca!sragwa!sravd.sra.JUNET From: erik@sravd.sra.JUNET (Erik M. van der Poel) Newsgroups: comp.windows.x Subject: Re: Programs relying on app-defaults files (was: Re: xclipboard bug?) Summary: put app-defaults in program Keywords: app-defaults Message-ID: <1041@sragwa.sra.JUNET> Date: 19 May 89 03:04:45 GMT References: <8905151402.AA06843@THANATOS.MIT.EDU> <773@acorn.co.uk> Sender: news@sragwa.sra.JUNET Reply-To: erik%sra.junet@uunet.uu.net (Erik M. van der Poel) Organization: Software Research Associates, Inc., Japan Lines: 21 In article <773@acorn.co.uk> steve@acorn.UUCP (Steve "Daffy" Hunt) writes: >In article <8905151402.AA06843@THANATOS.MIT.EDU> swick@ATHENA.MIT.EDU (Ralph R. Swick) writes: >>... But it _does_ rely on it's app-defaults >>(XClipboard.ad) file being correctly installed in the >>appropriate place(s). >... >I have to question the wisdom of *relying* on a resource file which can >so easily become separated from the program proper. I agree. I propose adding a function to Xt that would allow specifying the app-defaults in a string in the program instead of in a separate file. This would have to be called before calling XtInitialize(). void XtAppDefaults(defaults) String defaults; If this function is called, Xt ignores the app-defaults file. Now I'll sit back and wait for one of the Xt people to say "Yes, we've already done this. It'll be in R4." :-)