<?xml version="1.0"?>
<page id="Gimp.context_set_palette"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>bool</api:type>
      </api:returns>
      <api:name>gimp_context_set_palette</api:name>
      <api:arg>
        <api:type>unicode</api:type>
        <api:name>name</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.context_set_palette</title>
  <synopsis><code mime="text/x-python">
@accepts(unicode)
@returns(bool)
def context_set_palette(name):
    # Python wrapper for gimp_context_set_palette()
  </code></synopsis>
  <p>Set the specified palette as the active palette.</p>  <p>This procedure allows the active palette to be set by specifying its
name. The name is simply a string which corresponds to one of the
names of the installed palettes. If no matching palette is found,
this procedure will return an error. Otherwise, the specified
palette becomes active and will be used in all subsequent palette
operations.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>name</code></title>
  <p>The name of the palette.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
