> My only use for XrmPutFileDatabase() is if we create a dialog box for the
> user to change colors
*I* sure don't want to have to edit some config file to select colors
for particular protocols, and *definitely* wouldn't want to be obliged
to stop and restart Ethereal to change the colors. Given that, I think
choosing to have a dialog box for that is a no-brainer. (I've been
editing ".Xdefaults" and the like for N years, and am thoroughly tired
of it; I want to be able to configure programs' behavior from inside the
program - complete with being able to, say, select colors by color
rather than by name or RGB values or whatever - *and* to have the change
take place ASAP, rather than having to reload the resource database and
restart the program.)
> Anyway, I just suggested the resources because it was pretty ubiquitous,
"Ubiquitous" is Boolean, not integer; something is either ubiquitous or
not, and Xrm isn't ubiquitous, in that, as noted, non-X applications
don't have it, although I guess one could have them link with "-Xlib"
and get it.
> Is there some other library with that already done (I don't like to re-invent
> wheels if they work well)?
"prefs.c"? You'd have to also add code to *use* colors extracted from
there, but, even in an X version, the list widget we use in the GTK+
Ethereal has, as far as I know, no clue whether a given line is for a
DNS frame or an ARP frame or an SMB frame or..., so the toolkit would
have no clue which color to use - i.e., even if we *were* to use Xrm,
we'd *still* have to write code to use colors extracted from the
database.