From: Thomas A Leonard <tal00r@ec...> - 2000-12-21 18:41:15
On Wed, 13 Dec 2000, Diego Zamboni wrote:
> The attached patch to dir.c makes it read a file called "globicons"
> in the directory pointed to by CHOICESPATH. This file has to have the
> following format:
> /glob/pattern /full/path/to/icon.xpm
> Later lines override earlier ones, so more "specific" matches can be put
> later on the file than more general ones, and they will take precedence.
> The globicons file is re-read as necessary every time an icon is displayed
> (it has to be edited by hand), so it can be modified on the fly. My patch
> still checks for the .DirIcon.xpm file, which will override the globicons
> setting, if it exists. The patch is against CVS, so it includes the
> DirIcon-checking portion as well.
If we add a nice UI for setting the glob patterns then I don't think we
need the .DirIcon checking... eg, just click on the directory and choose
'Set Icon...' from the menu. The dir's path is the default glob and you
get to drag in an icon.
> Note that for now the file just contains the full path to the icon file.
> I haven't yet figured out how/where icons would be stored according to
> the Choices system, or if rox has an "icons path" configuration setting.
I think it would be neatest to put them in Choices/ROX-Filer and just
store the leafname in the glob file...