Function: tree-widget-icon-create
tree-widget-icon-create is a byte-compiled function defined in
tree-widget.el.gz.
Signature
(tree-widget-icon-create ICON)
Documentation
Create the ICON widget.
Source Code
;; Defined in /usr/src/emacs/lisp/tree-widget.el.gz
(defun tree-widget-icon-create (icon)
"Create the ICON widget."
(run-hook-with-args 'tree-widget-before-create-icon-functions icon)
(widget-put icon :tag-glyph
(tree-widget-find-image (widget-get icon :glyph-name)))
;; Ensure there is at least one char to display the image.
(and (widget-get icon :tag-glyph)
(equal "" (or (widget-get icon :tag) ""))
(widget-put icon :tag " "))
(widget-default-create icon)
;; Insert space between the icon and the node widget.
(insert-char ? 1)
(put-text-property
(1- (point)) (point)
'display (list 'space :width tree-widget-space-width)))