![]() |
![]() |
![]() |
GIMP Widgets Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
GimpEnumComboBoxGimpEnumComboBox — A GimpIntComboBox subclass for selecting an enum value. |
![]() |
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
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkComboBox +----GimpIntComboBox +----GimpEnumComboBox
GimpEnumComboBox implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.
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()
.
|
the GType of an enum. |
Returns : |
a new GimpEnumComboBox. |
Since GIMP 2.4
GtkWidget * gimp_enum_combo_box_new_with_model (GimpEnumStore *enum_store
);
Creates a GtkComboBox for the given enum_store
.
|
a GimpEnumStore to use as the model |
Returns : |
a new GimpEnumComboBox. |
Since GIMP 2.4
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_stock_prefix()
to find out what to use as
stock_prefix
.
|
a GimpEnumComboBox |
|
a prefix to create icon stock ID from enum values |
Since GIMP 2.4