| Evolution Utilities Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
struct ESourceComboBox; GtkWidget * e_source_combo_box_new (ESourceRegistry *registry,const gchar *extension_name); ESourceRegistry * e_source_combo_box_get_registry (ESourceComboBox *combo_box); void e_source_combo_box_set_registry (ESourceComboBox *combo_box,ESourceRegistry *registry); const gchar * e_source_combo_box_get_extension_name (ESourceComboBox *combo_box); void e_source_combo_box_set_extension_name (ESourceComboBox *combo_box,const gchar *extension_name); gboolean e_source_combo_box_get_show_colors (ESourceComboBox *combo_box); void e_source_combo_box_set_show_colors (ESourceComboBox *combo_box,gboolean show_colors); ESource * e_source_combo_box_ref_active (ESourceComboBox *combo_box); void e_source_combo_box_set_active (ESourceComboBox *combo_box,ESource *source);
GObject
+----GInitiallyUnowned
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkComboBox
+----ESourceComboBox
+----EClientComboBox
ESourceComboBox implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.
"extension-name" gchar* : Read / Write / Construct "registry" ESourceRegistry* : Read / Write / Construct "show-colors" gboolean : Read / Write / Construct
GtkWidget * e_source_combo_box_new (ESourceRegistry *registry,const gchar *extension_name);
Creates a new ESourceComboBox widget that lets the user pick an ESource
from the provided ESourceRegistry. The displayed sources are restricted
to those which have an extension_name extension.
|
an ESourceRegistry, or NULL
|
|
an ESource extension name |
Returns : |
a new ESourceComboBox |
Since 2.22
ESourceRegistry * e_source_combo_box_get_registry (ESourceComboBox *combo_box);
Returns the ESourceRegistry used to populate combo_box.
|
an ESourceComboBox |
Returns : |
the ESourceRegistry, or NULL
|
Since 3.6
void e_source_combo_box_set_registry (ESourceComboBox *combo_box,ESourceRegistry *registry);
Sets the ESourceRegistry used to populate combo_box.
This function is intended for cases where combo_box is instantiated
by a GtkBuilder and has to be given an ESourceRegistry after it is
fully constructed.
|
an ESourceComboBox |
|
an ESourceRegistry |
Since 3.6
const gchar * e_source_combo_box_get_extension_name
(ESourceComboBox *combo_box);
Returns the extension name used to filter which data sources are
shown in combo_box.
|
an ESourceComboBox |
Returns : |
the ESource extension name |
Since 3.6
void e_source_combo_box_set_extension_name (ESourceComboBox *combo_box,const gchar *extension_name);
Sets the extension name used to filter which data sources are shown in
combo_box.
|
an ESourceComboBox |
|
an ESource extension name |
Since 3.6
gboolean e_source_combo_box_get_show_colors (ESourceComboBox *combo_box);
Returns whether colors are shown next to data sources.
|
an ESourceComboBox |
Returns : |
TRUE if colors are being shown |
Since 3.6
void e_source_combo_box_set_show_colors (ESourceComboBox *combo_box,gboolean show_colors);
Sets whether to show colors next to data sources.
|
an ESourceComboBox |
|
whether to show colors |
Since 3.6
ESource * e_source_combo_box_ref_active (ESourceComboBox *combo_box);
Returns the ESource corresponding to the currently active item,
or NULL if there is no active item.
The returned ESource is referenced for thread-safety and must be
unreferenced with g_object_unref() when finished with it.
|
an ESourceComboBox |
Returns : |
an ESource or NULL
|
Since 3.6
void e_source_combo_box_set_active (ESourceComboBox *combo_box,ESource *source);
Sets the active item to the one corresponding to source.
|
an ESourceComboBox |
|
an ESource |
Since 2.22
"extension-name" property "extension-name" gchar* : Read / Write / Construct
ESource extension name to filter.
Default value: NULL
"registry" property"registry" ESourceRegistry* : Read / Write / Construct
Data source registry.