From d412075177d5226e9ed7857ab80812854c5a1118 Mon Sep 17 00:00:00 2001 From: vitaly Date: Wed, 28 Apr 2010 08:46:35 +0000 Subject: [PATCH] Don't define vector with images for the icon if there is only one image. --- wl/ChangeLog | 4 ++++ wl/wl-e21.el | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wl/ChangeLog b/wl/ChangeLog index d3ad732..9dea461 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,7 @@ +2010-04-28 Vitaly Mayatskikh + * wl-e21.el (wl-e21-setup-toolbar): Don't define vector with + images for the icon if there is only one image. + 2010-03-17 Katsumi Yamaoka * wl-draft.el (wl-user-agent-insert-body): Make sure body ends with diff --git a/wl/wl-e21.el b/wl/wl-e21.el index 325475c..05e49ba 100644 --- a/wl/wl-e21.el +++ b/wl/wl-e21.el @@ -202,7 +202,9 @@ `((,@props ,(concat name "-down.xpm")))) disabled (wl-e21-find-image `((,@props ,(concat name "-disabled.xpm"))))) - (set icon (vector down up disabled disabled))) + (if (and down disabled) + (set icon (vector down up disabled disabled)) + (set icon up))) (setq bar nil success nil)))) success))) -- 1.7.10.4