gimppalettes

gimppalettes — Operations related to palettes.

Functions

gboolean gimp_palettes_refresh ()
gchar ** gimp_palettes_get_list ()

Description

Operations related to palettes.

Functions

gimp_palettes_refresh ()

gboolean
gimp_palettes_refresh (void);

Refreshes current palettes. This function always succeeds.

This procedure retrieves all palettes currently in the user's palette path and updates the palette dialogs accordingly.

Returns

TRUE on success.


gimp_palettes_get_list ()

gchar **
gimp_palettes_get_list (const gchar *filter,
                        gint *num_palettes);

Retrieves a list of all of the available palettes

This procedure returns a complete listing of available palettes. Each name returned can be used as input to the command gimp_context_set_palette().

Parameters

filter

An optional regular expression used to filter the list.

 

num_palettes

The number of palettes in the list.

[out]

Returns

The list of palette names. The returned value must be freed with g_strfreev().

[array length=num_palettes][element-type gchar*][transfer full]