From 72e28eeb5af3965456a6c525460374dfb61a6b78 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 18 Sep 2000 12:25:36 +0000 Subject: [PATCH] (toolbar-like-menu-item): Like in toolbar-add-item, if image doesn't have a mask add a `:mask heuristic'. --- lisp/toolbar/toolbar.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/toolbar/toolbar.el b/lisp/toolbar/toolbar.el index bdd0d8a4385..bbc588da157 100644 --- a/lisp/toolbar/toolbar.el +++ b/lisp/toolbar/toolbar.el @@ -112,6 +112,8 @@ MAP must contain appropriate keymaps bound to `[menu-bar]' and 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)))))) -- 2.39.2