(wl-plugged-set-folder-icon): Follow the change for
authorhmurata <hmurata>
Sat, 3 Jul 2004 08:26:39 +0000 (08:26 +0000)
committerhmurata <hmurata>
Sat, 3 Jul 2004 08:26:39 +0000 (08:26 +0000)
multi-tty support.

wl/ChangeLog
wl/wl-e21.el

index 1a71e6f..096613a 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-03  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * wl-e21.el (wl-plugged-set-folder-icon): Follow the change for
+       multi-tty support.
+
 2004-07-01  Tetsurou Okazaki  <okazaki@be.to>
 
        * wl-folder.el (wl-folder-update-group): Change `defsubst' to `defun'.
index 93b6349..e5ca8dc 100644 (file)
              (overlay-put overlay 'display image))))))))
 
 (defun wl-plugged-set-folder-icon (folder string)
-  (if (wl-e21-display-image-p)
-      (let (type)
-       (cond ((string= folder wl-queue-folder)
-              (concat (get 'wl-folder-queue-image 'image)
-                      string))
-             ((setq type (elmo-folder-type folder))
-              (concat (get (intern (format "wl-folder-%s-image"
-                                           type))
-                           'image)
-                      string))
-             (t
-              string)))
-    string))
+  (let (image type)
+    (when (wl-e21-display-image-p)
+      (setq image
+           (cond ((string= folder wl-queue-folder)
+                  (get 'wl-folder-queue-image 'image))
+                 ((setq type (or (elmo-folder-type folder)
+                                 (elmo-folder-type-internal
+                                  (elmo-make-folder folder))))
+                  (get (intern (format "wl-folder-%s-image" type))
+                       'image)))))
+    (if image
+       (concat (propertize " " 'display image 'invisible t) string)
+      string)))
 
 (defvar wl-folder-internal-icon-list
   ;; alist of (image . icon-file)