GimpUnitComboBox

## GimpUnitComboBox GimpUnitComboBox — A GtkComboBox to select a GimpUnit. |

## Synopsis

                        GimpUnitComboBox;
    struct              GimpUnitComboBoxClass;
    GtkWidget *         gimp_unit_combo_box_new             (void);
    GtkWidget *         gimp_unit_combo_box_new_with_model  (GimpUnitStore *model);
    GimpUnit            gimp_unit_combo_box_get_active      (GimpUnitComboBox *combo);
    void                gimp_unit_combo_box_set_active      (GimpUnitComboBox *combo,
                                                             GimpUnit unit);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBin
                                     +----GtkComboBox
                                           +----GimpUnitComboBox

## Implemented Interfaces

GimpUnitComboBox implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.

## Style Properties

      "label-scale"              gdouble               : Read

## Description

GimpUnitComboBox allows to select units stored in a GimpUnitStore. It replaces the deprecated GimpUnitMenu.

## Details

### GimpUnitComboBox

    typedef struct _GimpUnitComboBox GimpUnitComboBox;

### struct GimpUnitComboBoxClass

    struct GimpUnitComboBoxClass {
      GtkComboBoxClass  parent_class;

      /* Padding for future expansion */
      void (*_gimp_reserved1) (void);
      void (*_gimp_reserved2) (void);
      void (*_gimp_reserved3) (void);
      void (*_gimp_reserved4) (void);
    };

### 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);

`model` : | a GimpUnitStore
Returns : | a new GimpUnitComboBox.

### gimp_unit_combo_box_get_active ()

    GimpUnit            gimp_unit_combo_box_get_active      (GimpUnitComboBox *combo);

### gimp_unit_combo_box_set_active ()

    void                gimp_unit_combo_box_set_active      (GimpUnitComboBox *combo,
                                                             GimpUnit unit);

## Style Property Details

### The `"label-scale"` style property

      "label-scale"              gdouble               : Read

Allowed values: >= 0

Default value: 1

## See Also

GimpUnit, GimpUnitStore