GdauiEntryCombo

GdauiEntryCombo

Functions

Properties

gboolean set-default-if-invalid Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBox
                    ╰── GdauiEntryShell
                        ╰── GdauiEntryCombo

Implemented Interfaces

GdauiEntryCombo implements AtkImplementorIface, GtkBuildable, GtkOrientable and GdauiDataEntry.

Description

Functions

gdaui_entry_combo_new ()

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.

Parameters

paramlist

a GdauiSet object

 

source

a GdauiSetSource structure, part of paramlist

 

Returns

the new widget.

[transfer full]


gdaui_entry_combo_set_values ()

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;

Parameters

combo

a GdauiEntryCombo widet

 

values

a list of GValue values, or NULL.

[element-type GValue][nullable]

Returns

TRUE if no error occurred.


gdaui_entry_combo_get_values ()

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.

Parameters

combo

a GdauiEntryCombo widet

 

Returns

a new list of values.

[transfer container][element-type GValue]


gdaui_entry_combo_get_all_values ()

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.

Parameters

combo

a GdauiEntryCombo widet

 

Returns

a new list of values.

[transfer container][element-type GValue]


gdaui_entry_combo_set_reference_values ()

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.

Parameters

combo

a GdauiEntryCombo widet

 

values

a list of GValue values.

[element-type GValue]

gdaui_entry_combo_get_reference_values ()

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.

Parameters

combo

a GdauiEntryCombo widet

 

Returns

a new list of values.

[transfer container][element-type GValue]


gdaui_entry_combo_set_default_values ()

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.

Parameters

combo

a GdauiEntryCombo widet

 

values

a list of GValue values.

[element-type GValue]

Types and Values

GDAUI_TYPE_ENTRY_COMBO

#define GDAUI_TYPE_ENTRY_COMBO          (gdaui_entry_combo_get_type())

struct GdauiEntryComboClass

struct GdauiEntryComboClass {
	GdauiEntryShellClass   parent_class;
};

GdauiEntryCombo

typedef struct _GdauiEntryCombo GdauiEntryCombo;

Property Details

The “set-default-if-invalid” property

  “set-default-if-invalid”   gboolean

Owner: GdauiEntryCombo

Flags: Read / Write

Default value: FALSE