(toolbar-add-item): Use image-mask-p.

This commit is contained in:
Gerd Moellmann 2000-09-15 15:21:42 +00:00
parent b243755a13
commit fc68490910

View file

@ -74,7 +74,7 @@ Info node `(elisp)Image Descriptors')."
(let ((image (find-image `((:type xbm :file ,(concat icon ".xbm"))
(:type xpm :file ,(concat icon ".xpm"))))))
(when image
(unless (memq 'xbm image)
(unless (image-mask-p image)
(setq image (append image '(:mask heuristict))))
(if (memq :enable props)
(let ((dis (append image '(:algorithm laplace))))