RGtk2 (version 2.20.31)

gCancellableSetErrorIfCancelled: gCancellableSetErrorIfCancelled

Description

If the cancellable is cancelled, sets the error to notify that the operation was cancelled.

Usage

gCancellableSetErrorIfCancelled(object, .errwarn = TRUE)

Arguments

object
a GCancellable object.
.errwarn
Whether to issue a warning on error or fail silently

Value

A list containing the following elements:
retval
[logical] TRUE if cancellable was cancelled, FALSE if it was not.
error
GError to append error state to.