DrawableComboBox


Description:

[ CCode ( cname = "gimp_drawable_combo_box_new" , has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "2.2" ) ]
public DrawableComboBox (owned ItemConstraintFunc? constraint)

Creates a new IntComboBox filled with all currently opened drawables.

If a constraint function is specified, it is called for each drawable and only if the function returns true, the drawable is added to the combobox.

You should use connect to initialize and connect the combo. Use set_active to get the active drawable ID and get_active to retrieve the ID of the selected drawable.

Parameters:

constraint

A ItemConstraintFunc or null

data

A pointer that is passed to constraint

data_destroy

Destroy function for data

Returns:

a new IntComboBox.