Gimp.context_get_gradient
Description: Reference for Gimp.context_get_gradient

### Function

# Gimpcontext_get_gradient

since: 2.2

#### Declaration [src]

    GimpGradient*
    gimp_context_get_gradient (
      void
    )

#### Description [src]

Get the currently active gradient.

Returns the currently active gradient.

Available since: 2.2

#### Return value

Type: `GimpGradient`

The active gradient.

The caller of the function takes ownership of the data, and is responsible for freeing it.