From ddba99ad141dec39c9149424756865e56e1c39b5 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 20 Sep 2000 07:18:35 +0000 Subject: [PATCH] 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'. --- lisp/ChangeLog | 5 +++++ lisp/toolbar/tool-bar.el | 2 ++ 2 files changed, 7 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 12bfd8907b5..4508a7e22e0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -11,6 +11,11 @@ hardwiring :family. * hi-lock.el (hi-black-hb): Likewise. + Reapply Gerd's change from 2000-09-18, which seems to have gotten lost: + * toolbar/tool-bar.el (tool-bar-add-item-from-menu): Like in + toolbar-add-item, if image doesn't have a mask add a `:mask + heuristic'. + 2000-09-19 Stefan Monnier * diff-mode.el: Docstring fixes. diff --git a/lisp/toolbar/tool-bar.el b/lisp/toolbar/tool-bar.el index 0aeb944874c..ff5028a164d 100644 --- a/lisp/toolbar/tool-bar.el +++ b/lisp/toolbar/tool-bar.el @@ -114,6 +114,8 @@ PROPS is a list of additional properties to add to the binding." 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))))) -- 2.39.2