### Function

# Gimp gradients_set_popup

unstable since: 3.0

#### Declaration [src]

    gboolean
    gimp_gradients_set_popup (
      const gchar* gradient_callback,
      GimpGradient* gradient
    )

#### Description [src]

Sets the current gradient in a gradient selection dialog.

Sets the current gradient in a gradient selection dialog.

Available since: 3.0

#### Parameters

`gradient_callback`

  Type: `const gchar*`

  The name of the callback registered for this pop-up.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`gradient`

  Type: `GimpGradient`

  The gradient to set as selected.

  The data is owned by the caller of the function.

#### Return value

Type: `gboolean`

TRUE on success.