Function: tree-widget-find-image
tree-widget-find-image is a byte-compiled function defined in
tree-widget.el.gz.
Signature
(tree-widget-find-image NAME)
Documentation
Find the image with NAME in current theme.
NAME is an image file name sans extension. Return the image found, or nil if not found.
Source Code
;; Defined in /usr/src/emacs/lisp/tree-widget.el.gz
(defun tree-widget-find-image (name)
"Find the image with NAME in current theme.
NAME is an image file name sans extension.
Return the image found, or nil if not found."
(when (tree-widget-use-image-p)
;; Ensure there is an active theme.
(tree-widget-set-theme (tree-widget-theme-name))
(let ((image (assoc name (aref tree-widget--theme 3))))
;; The image NAME is found in the cache.
(if image
(cdr image)
;; Search the image in current, and default themes.
(prog1
(setq image (tree-widget-lookup-image name))
;; Store image reference in the cache for later use.
(push (cons name image) (aref tree-widget--theme 3))))
)))