Gimp.gradients_popup

function gradients_popup(gradient_callback: String, popup_title: String, initial_gradient: String, sample_size: Number(gint)): Boolean {
    // Gjs wrapper for gimp_gradients_popup()
}
  

Invokes the Gimp gradients selection.

This procedure opens the gradient selection dialog.

gradient_callback

The callback PDB proc to call when gradient selection is made.

popup_title

Title of the gradient selection dialog.

initial_gradient

The name of the gradient to set as the first selected.

sample_size

Size of the sample to return when the gradient is changed.

Returns

TRUE on success.