<?xml version="1.0"?>
<page id="GimpUi.DrawableChooser.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.DrawableChooser" group="constructor" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_drawable_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>GObject.Type</api:type>
        <api:name>drawable_type</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gimp.Drawable</api:type>
        <api:name>drawable</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.DrawableChooser.new</title>
  <synopsis><code mime="text/x-gjs">
function new(title: String, label: String, drawable_type: GObject.Type, drawable: <link href="../Gimp-3.0/Gimp.Drawable.html">Gimp.Drawable</link>): <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> {
    // Gjs wrapper for gimp_drawable_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 drawable which must be of
type <code>drawable_type</code>. <code>drawable_type</code> of values %G_TYPE_NONE and
%GIMP_TYPE_DRAWABLE are equivalent. Otherwise it must be a subtype of
%GIMP_TYPE_DRAWABLE.</p>  <p>When <code>drawable</code> is <code>null</code>, initial choice is from context.</p>
  <p>Since 3.0</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>drawable_type</code></title>
  <p>the acceptable subtype of choosable drawables.</p>
</item>
<item>
<title><code>drawable</code></title>
  <p>Initial drawable.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>A [class@GimpUi.DrawableChooser.</p>
</item>
</terms>

</page>
