# HG changeset patch # User Miles Bader # Date 969434271 0 # Node ID 3c4b8a33fed96c754757ef6470869bd8f3db4753 # Parent f1d3526d5ebd9447ae3d94a0fa497138d55e9fd4 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'. diff -r f1d3526d5ebd -r 3c4b8a33fed9 lisp/toolbar/tool-bar.el --- 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)))))