Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gdaui_entry_combo_new () |
gboolean | gdaui_entry_combo_set_values () |
GSList * | gdaui_entry_combo_get_values () |
GSList * | gdaui_entry_combo_get_all_values () |
void | gdaui_entry_combo_set_reference_values () |
GSList * | gdaui_entry_combo_get_reference_values () |
void | gdaui_entry_combo_set_default_values () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GdauiEntryShell ╰── GdauiEntryCombo
GdauiEntryCombo implements AtkImplementorIface, GtkBuildable, GtkOrientable and GdauiDataEntry.
GtkWidget * gdaui_entry_combo_new (GdauiSet *paramlist
,GdauiSetSource *source
);
Creates a new GdauiEntryCombo widget. The widget is a combo box which displays a selectable list of items (the items come from the 'source->data_model' data model)
The widget allows the value setting of one or more GdaHolder objects (one for each 'source->nodes') while proposing potentially "more readable" choices.
gboolean gdaui_entry_combo_set_values (GdauiEntryCombo *combo
,GSList *values
);
Sets the values of combo
to the specified ones. None of the
values provided in the list is modified.
values
holds a list of GValue values, one for each parameter that is present in the node
argument
of the gdaui_entry_combo_new()
function which created combo
.
An error can occur when there is no corresponding value(s) to be displayed for the provided values.
If values
is NULL
, then the entry itself is set to NULL;
combo |
a GdauiEntryCombo widet |
|
values |
a list of GValue values, or |
[element-type GValue][nullable] |
GSList *
gdaui_entry_combo_get_values (GdauiEntryCombo *combo
);
Get the values stored within combo
. The returned values are the ones
within combo
, so they must not be freed afterwards, however the returned
list has to be freed afterwards.
GSList *
gdaui_entry_combo_get_all_values (GdauiEntryCombo *combo
);
Get a list of all the values in combo
's data model's selected row. The list
must be freed by the caller.
void gdaui_entry_combo_set_reference_values (GdauiEntryCombo *combo
,GSList *values
);
Sets the original values of combo
to the specified ones. None of the
values provided in the list is modified.
GSList *
gdaui_entry_combo_get_reference_values
(GdauiEntryCombo *combo
);
Get the original values stored within combo
. The returned values are the ones
within combo
, so they must not be freed afterwards; the list has to be freed afterwards.
void gdaui_entry_combo_set_default_values (GdauiEntryCombo *combo
,GSList *values
);
Sets the default values of combo
to the specified ones. None of the
values provided in the list is modified.