Re: FVWM: icons

From: Bruce Stephens <B.Stephens_at_isode.com>
Date: Fri, 22 Aug 1997 11:13:04 +0100

Graeme.McCaffery_at_astro.cf.ac.uk said:
> would it be possible to put all xpm icons in one file in a format
> that fvwm would find easier and faster to access, as sort of cache.
> this could be compressed so that the icons took up less room (or are
> these 2 points a contradiction)

What format were you thinking of? Given that fvwm uses the xpm library, xpm
format is about as convenient as it can get! Another point against this is
that it's convenient to be able to use standard tools to fiddle with the
pixmaps, and standard tools aren't going to understand a nonstandard format.

Having said that, I don't see a problem with your other suggestion, of
allowing a program to provide pixmaps. Users could provide an PixmapProgram
or something, which would be executed with the PixmapPath and the desired
pixmap name, and would either return an EOF immediately (indicating that no
such pixmap is available) or print the desired pixmap to standard output.
Maybe an error status would be better for indicating no pixmap.

That would allow you to store pixmaps however you wanted, so long as you could
turn them into xpm format (presumably you'd want to be able to do this
reasonably quickly, too, although that would mostly be a startup cost). If
you wanted, you could throw in a quantize to reduced colourmap or whatever.
You could check the name of the pixmap, and if it didn't exist, but stripping
off a leading "mini-" did, you could reduce the pixmap's size on the fly. All
kinds of things would be possible. If starting up the process costs too much,
the whole thing could be stuck in a module, I suppose (although I'd guess
you'd have to extend the module interface a little).

-- 
Bruce Stephens	B.Stephens_at_isode.com
Isode Ltd.	<URL:http://www.isode.com/>
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Aug 22 1997 - 05:13:56 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST