/* Returns: TRUE if @cancellable is cancelled, FALSE if called with NULL or if item is not cancelled.  */
gboolean g_cancellable_is_cancelled(GCancellable *cancellable)
/* Returns: TRUE if @cancellable is cancelled, FALSE if called with NULL or if item is not cancelled.  */
gboolean g_cancellable_is_cancelled(GCancellable *cancellable)
{
  return cancellable != NULL && cancellable->priv->cancelled;
}