ESourceComboBox

ESourceComboBox

Functions

Properties

ESourceList * source-list Read / Write

Types and Values

Object Hierarchy

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

Implemented Interfaces

ESourceComboBox implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.

Description

Functions

e_source_combo_box_new ()

GtkWidget *
e_source_combo_box_new (ESourceList *source_list);

Creates a new ESourceComboBox widget that lets the user pick an ESource from the provided ESourceList.

Parameters

source_list

an ESourceList

 

Returns

a new ESourceComboBox

Since 2.22


e_source_combo_box_get_source_list ()

ESourceList *
e_source_combo_box_get_source_list (ESourceComboBox *combo_box);

Returns the ESourceList which is acting as a data source for combo_box .

Parameters

combo_box

an ESourceComboBox

 

Returns

an ESourceList

Since 2.22


e_source_combo_box_set_source_list ()

void
e_source_combo_box_set_source_list (ESourceComboBox *combo_box,
                                    ESourceList *source_list);

Sets the source list used by source_combo_box to be source_list . This causes the contents of source_combo_box to be regenerated.

Parameters

combo_box

an ESourceComboBox

 

source_list

an ESourceList

 

Since 2.22


e_source_combo_box_get_active ()

ESource *
e_source_combo_box_get_active (ESourceComboBox *combo_box);

Returns the ESource corresponding to the currently active item, or NULL if there is no active item.

Parameters

combo_box

an ESourceComboBox

 

Returns

an ESource or NULL

Since 2.22


e_source_combo_box_set_active ()

void
e_source_combo_box_set_active (ESourceComboBox *combo_box,
                               ESource *source);

Sets the active item to the one corresponding to source .

Parameters

combo_box

an ESourceComboBox

 

source

an ESource

 

Since 2.22


e_source_combo_box_get_active_uid ()

const gchar *
e_source_combo_box_get_active_uid (ESourceComboBox *combo_box);

Returns the unique ID of the ESource corresponding to the currently active item, or NULL if there is no active item.

Parameters

combo_box

an ESourceComboBox

 

Returns

a unique ID string or NULL

Since 2.22


e_source_combo_box_set_active_uid ()

gboolean
e_source_combo_box_set_active_uid (ESourceComboBox *combo_box,
                                   const gchar *uid);

Sets the active item to the one corresponding to uid .

Parameters

combo_box

an ESourceComboBox

 

uid

a unique ID of an ESource

 

Returns

whether found such uid

Since 2.22

Types and Values

struct ESourceComboBox

struct ESourceComboBox;

Since 2.22

Property Details

The “source-list” property

  “source-list”              ESourceList *

List of sources to choose from.

Flags: Read / Write