GSourceFunc

Specifies the type of function passed to Timeout.add, Timeout.addFull, Idle.add, and Idle.addFull.

When calling Source.setCallback, you may need to cast a function of a different type to this type. Use G_SOURCE_FUNC() to avoid warnings about incompatible function types.

alias GSourceFunc = int function(void* userData)

Return Value

FALSE if the source should be removed. G_SOURCE_CONTINUE and G_SOURCE_REMOVE are more memorable names for the return value.