<?xml version="1.0"?>
<page id="GimpUi.DrawableComboBox.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.DrawableComboBox" group="constructor" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_drawable_combo_box_new</api:name>
    </api:function>
  </info>
  <title>GimpUi.DrawableComboBox.new</title>
  <synopsis><code mime="text/x-gjs">
function new(): <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> {
    // Gjs wrapper for gimp_drawable_combo_box_new()
}
  </code></synopsis>
  <p>Creates a new <link xref="GimpUi.IntComboBox"/> filled with all currently opened
drawables. If a <code>constraint</code> function is specified, it is called for
each drawable and only if the function returns <code>true</code>, the drawable
is added to the combobox.</p>  <p>You should use <link xref="GimpUi.IntComboBox.connect"/> to initialize and connect
the combo.  Use <link xref="GimpUi.IntComboBox.set_active"/> to get the active
drawable ID and <link xref="GimpUi.IntComboBox.get_active"/> to retrieve the ID
of the selected drawable.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>Returns</code></title>
  <p>a new <link xref="GimpUi.IntComboBox"/>.</p>
</item>
</terms>

</page>
