<?xml version="1.0"?>
<page id="GimpUi.ResourceSelectButton.set_resource"
      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.ResourceSelectButton" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>void</api:type>
      </api:returns>
      <api:name>gimp_resource_select_button_set_resource</api:name>
      <api:arg>
        <api:type>Gimp.Resource</api:type>
        <api:name>resource</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.ResourceSelectButton.prototype.set_resource</title>
  <synopsis><code mime="text/x-gjs">
function set_resource(resource: <link href="../Gimp-3.0/Gimp.Resource.html">Gimp.Resource</link>): void {
    // Gjs wrapper for gimp_resource_select_button_set_resource()
}
  </code></synopsis>
  <p>Sets the currently selected resource.
This will select the resource in both the button and any chooser popup.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>resource</code></title>
  <p>Resource to set.</p>
</item>
</terms>

</page>
