summaryrefslogtreecommitdiff
path: root/lisp/toolbar
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-09-15 21:00:32 +0000
committerGerd Moellmann <gerd@gnu.org>2000-09-15 21:00:32 +0000
commitb87f2e9dc496b470bc4f4b92f355c6f2f8c3ab1b (patch)
tree425a64e4fd547fdf38c76372a31d211e7f96b1cc /lisp/toolbar
parent1bf0b15f5e1db71a314535acf9ff37d16934a98d (diff)
downloademacs-b87f2e9dc496b470bc4f4b92f355c6f2f8c3ab1b.tar.gz
(toolbar-add-item): Use the same image
specification if or if not tool-bar item contains an `:enabled' property.
Diffstat (limited to 'lisp/toolbar')
-rw-r--r--lisp/toolbar/toolbar.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/toolbar/toolbar.el b/lisp/toolbar/toolbar.el
index c58e617f3dc..bdd0d8a4385 100644
--- a/lisp/toolbar/toolbar.el
+++ b/lisp/toolbar/toolbar.el
@@ -75,10 +75,7 @@ Info node `(elisp)Image Descriptors')."
(:type xpm :file ,(concat icon ".xpm"))))))
(when image
(unless (image-mask-p image)
- (setq image (append image '(:mask heuristict))))
- (if (memq :enable props)
- (let ((dis (append image '(:algorithm laplace))))
- (setq image (vector image image dis dis))))
+ (setq image (append image '(:mask heuristic))))
(define-key-after (or map toolbar-global-map) (vector key)
`(menu-item ,(symbol-name key) ,def :image ,image ,@props)))))