Package: gio
Class gio:simple-action
Superclassesgio:action, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The g:simple-action class is the obvious simple implementation of the g:action interface.
This is the easiest way to create an action for purposes of adding it to a g:simple-action-group object. Signal DetailsThe "activate" signallambda (action parameter) :run-last
The "change-state" signallambda (action value) :run-last
Examples: Implementation of a "change-state" signal handler: (g:signal-connect action "change-state" (lambda (simple value) (let ((requested (g:variant-int32 value))) ;; Volume only goes from 0 to 10 (when (and (>= requested 0) (<= requested 10)) (setf (g:simple-action-state simple) value)))))The handler need not set the state to the requested value. It could set it to any value at all, or take some other action. | Returned bySlot Access Functions
Inherited Slot Access Functions
See also |
2024-12-29