## GimpEnumComboBox GimpEnumComboBox |

## Synopsis

                        GimpEnumComboBox;
    GtkWidget*          gimp_enum_combo_box_new             (GType enum_type);
    GtkWidget*          gimp_enum_combo_box_new_with_model  (GimpEnumStore *enum_store);
    void                gimp_enum_combo_box_set_stock_prefix
                                                            (GimpEnumComboBox *combo_box,
                                                             const gchar *stock_prefix);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBin
                                     +----GtkComboBox
                                           +----GimpIntComboBox
                                                 +----GimpEnumComboBox

## Implemented Interfaces

GimpEnumComboBox implements AtkImplementorIface, GtkBuildable, GtkCellEditable and GtkCellLayout.

## Properties

      "model"                    GimpEnumStore*        : Read / Write

## Description

## Details

### GimpEnumComboBox

    typedef struct _GimpEnumComboBox GimpEnumComboBox;

### gimp_enum_combo_box_new ()

    GtkWidget*          gimp_enum_combo_box_new             (GType enum_type);

Creates a GtkComboBox readily filled with all enum values from a given `enum_type`. 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.

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 GimpEnumStore and use `gimp_enum_combo_box_new_with_model()`.

`enum_type` : | the GType of an enum.
Returns : | a new GimpEnumComboBox.

Since GIMP 2.4

### gimp_enum_combo_box_new_with_model ()

    GtkWidget*          gimp_enum_combo_box_new_with_model  (GimpEnumStore *enum_store);

Creates a GtkComboBox for the given `enum_store`.

`enum_store` : | a GimpEnumStore to use as the model
Returns : | a new GimpEnumComboBox.

Since GIMP 2.4

### gimp_enum_combo_box_set_stock_prefix ()

    void                gimp_enum_combo_box_set_stock_prefix
                                                            (GimpEnumComboBox *combo_box,
                                                             const gchar *stock_prefix);

Attempts to create stock icons for all items in the `combo_box`. See `gimp_enum_store_set_icons()` to find out what to use as `stock_prefix`.

`combo_box` : | a GimpEnumComboBox
`stock_prefix` : | a prefix to create icon stock ID from enum values

Since GIMP 2.4

## Property Details

### The `"model"` property

      "model"                    GimpEnumStore*        : Read / Write