Function: widget-image-insert

widget-image-insert is a byte-compiled function defined in wid-edit.el.gz.

Signature

(widget-image-insert WIDGET TAG IMAGE &optional DOWN INACTIVE)

Documentation

In WIDGET, insert the text TAG or, if supported, IMAGE.

IMAGE should either be an image or an image file name sans extension
(xpm, xbm, gif, jpg, or png) located in widget-image-directory.

Optional arguments DOWN and INACTIVE are used instead of IMAGE when the button is pressed or inactive, respectively. These are currently ignored.

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-image-insert (widget tag image &optional _down _inactive)
  "In WIDGET, insert the text TAG or, if supported, IMAGE.
IMAGE should either be an image or an image file name sans extension
\(xpm, xbm, gif, jpg, or png) located in `widget-image-directory'.

Optional arguments DOWN and INACTIVE are used instead of IMAGE when the
button is pressed or inactive, respectively.  These are currently ignored."
  (if (and (featurep 'image)
	   (setq image (widget-image-find image)))
      (progn (widget-put widget :suppress-face t)
	     (insert-image image tag))
    (insert tag)))