# To subscribers of the xforms list from spl@ncmir.ucsd.edu :
> The approach seems needlessly fragile. Is there no way to
> interrogate X11 for the location of the rgb.txt file?
`rgb_db.c' is used by `image_xpm.c' and actually belongs in the image
handling stuff (and will be moved, accordingly).
My guess is that the somewhat klugey approach was taken because the
image library is supposed to be able to function without an X
connection and XLookupColor() and its ilk require a Colormap and a
Display, which may not exist. Hence the necessity to interrogate
`rgb.txt' directly.
It may be possible to automagically set the correct path using a
DEFINE in the `Imakefile', since `rgb.txt' or its equivalent should
live in the same place the X libraries live.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Fri Jul 19 2002 - 09:48:06 EDT