Package: gtk

Function gtk-events-pending

Lambda List

gtk-events-pending ()

Return Value

True if any events are pending, false otherwise.

Details

Checks if any events are pending. This can be used to update the UI and invoke timeouts etc. while doing some time intensive computation.

Example

Updating the UI during a long computation.
;; computation going on ...

(loop while (gtk-events-pending) do (gtk-main-iteration))

;; ... computation continued
 

See also

2021-3-21