Gimp.gradients_get_list
Description: Reference for Gimp.gradients_get_list

### Function

# Gimpgradients_get_list

#### Declaration [src]

    GimpGradient**
    gimp_gradients_get_list (
      const gchar* filter
    )

#### Description [src]

Retrieve the list of loaded gradients.

This procedure returns a list of the gradients that are currently loaded. Each gradient returned can be used as input to `gimp_context_set_gradient()`.

#### Parameters

`filter`

  Type: `const gchar*`

  An optional regular expression used to filter the list.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: An array of `GimpGradient*`

         The list of gradients.
         The returned value must be freed with g_free().

The array is `NULL`-terminated.
The caller of the function takes ownership of the data container, but not the data inside it.