Mercurial > emacs
diff lisp/toolbar/tool-bar.el @ 31751:3c4b8a33fed9
Reapply Gerd's change from 2000-09-18, which seems to have gotten lost:
(tool-bar-add-item-from-menu): Like in toolbar-add-item, if image
doesn't have a mask add a `:mask heuristic'.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 20 Sep 2000 07:17:51 +0000 |
parents | e8458588eb55 |
children | 6d04db7a9256 |
line wrap: on
line diff
--- a/lisp/toolbar/tool-bar.el Wed Sep 20 06:41:26 2000 +0000 +++ b/lisp/toolbar/tool-bar.el Wed Sep 20 07:17:51 2000 +0000 @@ -114,6 +114,8 @@ key kk))))) (when (and (symbolp submap) (boundp submap)) (setq submap (eval submap))) + (unless (image-mask-p image) + (setq image (append image '(:mask heuristic)))) (define-key-after tb-map (vector key) (append (cdr (assq key (cdr submap))) (list :image image) props)))))