# Gimp.Palette.prototype.add_entry

    function add_entry(entry_name: String, color: Gegl.Color): [ok: Boolean, entry_num: Number(gint)] {
        // Gjs wrapper for gimp_palette_add_entry()
    }

Appends an entry to the palette.

Appends an entry to the palette. Neither color nor name must be unique within the palette. When name is the empty string, this sets the entry name to \"Untitled\". Returns the index of the entry. Returns an error when palette is not editable.

Since 2.2

entry_name

  A name for the entry.

color

  The color for the added entry.

ok

  TRUE on success.

entry_num

  The index of the added entry.