Method

GimpPaletteentry_set_name

since: 2.2

Declaration [src]

gboolean
gimp_palette_entry_set_name (
  GimpPalette* palette,
  gint entry_num,
  const gchar* entry_name
)

Description [src]

Sets the name of an entry in the palette.

Sets the name of the entry at the zero-based index into the palette. Returns an error if the index is out or range. Returns an error if the palette is not editable.

Available since: 2.2

Parameters

entry_num

Type: gint

The entry to get.

entry_name

Type: const gchar*

The new name.

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

Return value

Type: gboolean

TRUE on success.