GimpImageComboBox

GimpImageComboBox — A widget providing a popup menu of images.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkComboBox
                        ╰── GimpIntComboBox
                            ╰── GimpImageComboBox

Implemented Interfaces

GimpImageComboBox implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.

Description

A widget providing a popup menu of images.

Functions

GimpImageConstraintFunc ()

gboolean
(*GimpImageConstraintFunc) (GimpImage *image,
                            gpointer data);

Parameters

data

.

[closure]

gimp_image_combo_box_new ()

GtkWidget *
gimp_image_combo_box_new (GimpImageConstraintFunc constraint,
                          gpointer data,
                          GDestroyNotify data_destroy);

Creates a new GimpIntComboBox filled with all currently opened images. If a constraint function is specified, it is called for each image and only if the function returns TRUE, the image is added to the combobox.

You should use gimp_int_combo_box_connect() to initialize and connect the combo. Use gimp_int_combo_box_set_active() to get the active image ID and gimp_int_combo_box_get_active() to retrieve the ID of the selected image.

Parameters

constraint

A GimpImageConstraintFunc or NULL.

[nullable]

data

A pointer that is passed to constraint .

[closure constraint]

data_destroy

Destroy function for data .

[destroy data]

Returns

a new GimpIntComboBox.

Since: 2.2

Types and Values

GimpImageComboBox

typedef struct _GimpImageComboBox GimpImageComboBox;