Don't define vector with images for the icon if there is only one image.
authorvitaly <vitaly>
Wed, 28 Apr 2010 08:46:35 +0000 (08:46 +0000)
committervitaly <vitaly>
Wed, 28 Apr 2010 08:46:35 +0000 (08:46 +0000)
wl/ChangeLog
wl/wl-e21.el

index d3ad732..9dea461 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-28  Vitaly Mayatskikh  <v.mayatskih@gmail.com>
+       * 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  <yamaoka@jpl.org>
 
        * wl-draft.el (wl-user-agent-insert-body): Make sure body ends with
index 325475c..05e49ba 100644 (file)
                            `((,@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)))