<?xml version="1.0"?>
<page id="GimpUi.ChainButton.set_active"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="GimpUi.ChainButton" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_chain_button_set_active</api:name>
      <api:arg>
        <api:type>GimpUi.ChainButton</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>bool</api:type>
        <api:name>active</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.ChainButton.set_active</title>
  <synopsis><code mime="text/x-python">
@accepts(GimpUi.ChainButton, bool)
@returns(none)
def set_active(self, active):
    # Python wrapper for gimp_chain_button_set_active()
  </code></synopsis>
  <p>Sets the state of the <link xref="GimpUi.ChainButton"/> to be either locked (<code>True</code>) or
unlocked (<code>False</code>) and changes the showed pixmap to reflect the new state.</p>

<terms>
<item>
<title><code>self</code></title>
  <p>Pointer to a <link xref="GimpUi.ChainButton"/>.</p>
</item>
<item>
<title><code>active</code></title>
  <p>The new state.</p>
</item>
</terms>

</page>
