From: vitaly Date: Wed, 28 Apr 2010 08:46:35 +0000 (+0000) Subject: Don't define vector with images for the icon if there is only one image. X-Git-Tag: merged-trunk-to-elmo-imap4-compliance-1^2~25 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=d412075177d5226e9ed7857ab80812854c5a1118;p=elisp%2Fwanderlust.git Don't define vector with images for the icon if there is only one image. --- 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)))