Re: [tkined] Icons?

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Thu, 1 Jul 1999 16:46:39 +0200

>>>>> Alan J Flavell writes:

Alan> I gather that the program expects a pair of *.xbm and *Mask.xbm
Alan> files. For the icons that actually come with Scotty, the two
Alan> files don't in general seem to be the same.

Alan> The README file in the other, smaller, collection says these
Alan> should be copies of each other. "Getting started" says the
Alan> same.

Alan> I can't help wondering, first, whether it would not be more
Alan> appropriate to use a symlink if the two files are supposed to be
Alan> the same; and second, whether the program code could not be
Alan> modified so that the absence of a *Mask file would be handled
Alan> appropriately, so that even the symlinks weren't needed. But I
Alan> haven't actually found where in the code this is handled.

It would be stupid to read the same file twice or to require symlinks
to the same file. No, the *.xbm and *Mask.xbm are not necessarily the
same. The *.xbm defines the bitmap while the *Mask.xbm defines which
parts of the bitmap belong to the icon and which not. This is useful
since not every icon is a rectangle (but *.xbm files always store
rectangles).
Juergen

-- 
Juergen Schoenwaelder  schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany.        (Tel. +49 531 / 391 3289)
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.