changeset 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 f1d3526d5ebd
children 60d9ac2802eb
files lisp/toolbar/tool-bar.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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)))))