4.29 GSourceFunc

Callback: GSourceFunc

A procedure given for it is called as (procedure) ⇒ %return.

Specifies the type of function passed to timeout-add, GLib.timeout_add_full, idle-add, and GLib.idle_add_full.

When calling source:set-callback, you may need to cast a function of a different type to this type. Use GLib.SOURCE_FUNC to avoid warnings about incompatible function types.

%return

Returned: a boolean.

#f if the source should be removed. GLib.SOURCE_CONTINUE and GLib.SOURCE_REMOVE are more memorable names for the return value.

user-data

Not passed: it is the user data that guile-gi supplied.

data passed to the function, set when the source was created with one of the above functions