Gimp.Palette.prototype.entry_set_name

function entry_set_name(entry_num: Number(gint), entry_name: String): Boolean {
    // Gjs wrapper for gimp_palette_entry_set_name()
}
  

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.

Since 2.2

entry_num

The entry to get.

entry_name

The new name.

Returns

TRUE on success.