Function: custom-icon-state-set

custom-icon-state-set is a byte-compiled function defined in cus-edit.el.gz.

Signature

(custom-icon-state-set WIDGET &optional STATE)

Documentation

Set the state of WIDGET to STATE.

Source Code

;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
(defun custom-icon-state-set (widget &optional state)
  "Set the state of WIDGET to STATE."
  (let ((value (custom--icons-widget-value
                (car (widget-get widget :children)))))
    (widget-put
     widget :custom-state
     (or state
         (custom-icon-state (widget-value widget) value)))))