<?xml version="1.0"?>
<page id="GimpUi.PaletteChooser.new"
      type="topic"
      style="constructor"
      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.PaletteChooser" group="constructor" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_palette_chooser_new</api:name>
      <api:arg>
        <api:type>String</api:type>
        <api:name>title</api:name>
      </api:arg>
      <api:arg>
        <api:type>String</api:type>
        <api:name>label</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gimp.Resource</api:type>
        <api:name>resource</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.PaletteChooser.new</title>
  <synopsis><code mime="text/x-gjs">
function new(title: String, label: String, resource: <link href="../Gimp-3.0/Gimp.Resource.html">Gimp.Resource</link>): <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> {
    // Gjs wrapper for gimp_palette_chooser_new()
}
  </code></synopsis>
  <p>Creates a new <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> that lets a user choose a palette.
You can put this widget in a table in a plug-in dialog.</p>  <p>When palette is NULL, initial choice is from context.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>title</code></title>
  <p>Title of the dialog to use or <code>null</code> to use the default title.</p>
</item>
<item>
<title><code>label</code></title>
  <p>Button label or <code>null</code> for no label.</p>
</item>
<item>
<title><code>resource</code></title>
  <p>Initial palette.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>A <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> that you can use in your UI.</p>
</item>
</terms>

</page>
