EnumComboBox


Description:

[ CCode ( cname = "gimp_enum_combo_box_new" , has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "2.4" ) ]
public EnumComboBox (Type enum_type)

Creates a ComboBox 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 EnumStore and use EnumComboBox.with_model.

Parameters:

enum_type

the Type of an enum.

Returns:

a new EnumComboBox.