gCancellableSetErrorIfCancelled {RGtk2} | R Documentation

## 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.

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.36.3 Index]