<?xml version="1.0"?>
<page id="GimpUi.EnumComboBox.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.EnumComboBox" group="constructor" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_enum_combo_box_new</api:name>
      <api:arg>
        <api:type>GObject.Type</api:type>
        <api:name>enum_type</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.EnumComboBox.new</title>
  <synopsis><code mime="text/x-gjs">
function new(enum_type: GObject.Type): <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> {
    // Gjs wrapper for gimp_enum_combo_box_new()
}
  </code></synopsis>
  <p>Creates a <link href="../Gtk-3.0/Gtk.ComboBox.html">Gtk.ComboBox</link> readily filled with all enum values from a
given <code>enum_type</code>. The enum needs to be registered to the type
system. It should also have %GimpEnumDesc descriptions registered
that contain translatable value names. This is the case for the
enums used in the GIMP PDB functions.</p>  <p>This is just a convenience function. If you need more control over
the enum values that appear in the combo_box, you can create your
own <link xref="GimpUi.EnumStore"/> and use <link xref="GimpUi.EnumComboBox.new_with_model"/>.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>enum_type</code></title>
  <p>the <link href="../GLib-2.0/GLib.Type.html">GLib.Type</link> of an enum.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>a new <link xref="GimpUi.EnumComboBox"/>.</p>
</item>
</terms>

</page>
