GimpUnitComboBox

GimpUnitComboBox — A GtkComboBox to select a GimpUnit.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkComboBox
                        ╰── GimpUnitComboBox

Implemented Interfaces

GimpUnitComboBox implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.

Description

GimpUnitComboBox selects units stored in a GimpUnitStore.

Functions

gimp_unit_combo_box_new ()

GtkWidget *
gimp_unit_combo_box_new (void);

Returns

a new GimpUnitComboBox.


gimp_unit_combo_box_new_with_model ()

GtkWidget *
gimp_unit_combo_box_new_with_model (GimpUnitStore *model);

Parameters

model

a GimpUnitStore

 

Returns

a new GimpUnitComboBox.


gimp_unit_combo_box_get_active ()

GimpUnit
gimp_unit_combo_box_get_active (GimpUnitComboBox *combo);

Returns the GimpUnit currently selected in the combo box.

Parameters

combo

a GimpUnitComboBox

 

Returns

The selected GimpUnit.

[transfer none]


gimp_unit_combo_box_set_active ()

void
gimp_unit_combo_box_set_active (GimpUnitComboBox *combo,
                                GimpUnit unit);

Sets unit as the currently selected GimpUnit on combo .

Parameters

combo

a GimpUnitComboBox

 

unit

a GimpUnit

 

Types and Values

GimpUnitComboBox

typedef struct _GimpUnitComboBox GimpUnitComboBox;

See Also

GimpUnit, GimpUnitStore