It derives from <AdwActionRow>.
A <GtkListBoxRow> used to choose from a
list of items.
The <AdwComboRow> widget allows the user to
choose from a list of valid choices. The row displays the selected
choice. When activated, the row displays a popover which allows the
user to make a new choice.
Example of an <AdwComboRow> UI definition:
<object class="AdwComboRow">
<property name="title" translatable="yes">Combo Row</property>
<property name="model">
<object class="GtkStringList">
<items>
<item translatable="yes">Foo</item>
<item translatable="yes">Bar</item>
<item translatable="yes">Baz</item>
</items>
</object>
</property>
</object>
The ComboRow:selected and ComboRow:selected-item
properties can be used to keep track of the selected item and react to
their changes.
<AdwComboRow> mirrors
<GtkDropDown>, see that widget for details.
<AdwComboRow> is list-box-row:activatable if a model is set.
<AdwComboRow> has a main CSS node with name
row and the .combo style class.
Its popover has the node named popover with the .menu
style class, it contains a
<GtkScrolledWindow>, which in turn
contains a <GtkListView>, both are accessible
via their regular nodes.
<AdwComboRow> uses the
Gtk.AccessibleRole.combo-box role.
parent-instanceWhether to show a search entry in the popup.
If set to TRUE, a search entry will be shown in the popup that
allows to search for items in the list.
Search requires ComboRow:expression to be set.
Its value is a boolean.
Set it with (set! (combo-row:enable-search self) value).
An expression used to obtain strings from items.
The expression must have a value type of G_TYPE_STRING.
It’s used to bind strings to labels produced by the default factory if
ComboRow:factory is not set, or when ComboRow:use-subtitle
is set to TRUE.
Its value is a <GtkExpression>, or
#f.
Set it with (set! (combo-row:expression self) value).
Factory for populating list items.
This factory is always used for the item in the row. It is also used
for items in the popup unless ComboRow:list-factory is set.
Its value is a <GtkListItemFactory>,
or #f.
Set it with (set! (combo-row:factory self) value).
The factory for creating header widgets for the popup.
Its value is a <GtkListItemFactory>,
or #f.
Set it with (set! (combo-row:header-factory self) value).
The factory for populating list items in the popup.
If this is not set, ComboRow:factory is used.
Its value is a <GtkListItemFactory>,
or #f.
Set it with (set! (combo-row:list-factory self) value).
The model that provides the displayed items.
Its value is a <GListModel>, or #f.
Set it with (set! (combo-row:model self) value).
The match mode for the search filter.
Its value is a
<GtkStringFilterMatchMode> (or,
to set it, one of its symbols).
Set it with (set! (combo-row:search-match-mode self) value).
The position of the selected item.
If no item is selected, the property has the value
Gtk.INVALID_LIST_POSITION
Its value is an unsigned 32-bit integer.
Set it with (set! (combo-row:selected self) value).
The selected item.
Its value is a <GObject>, or #f.
It is read only.
Whether to use the current value as the subtitle.
If you use a custom list item factory, you will need to give the row a
name conversion expression with ComboRow:expression.
If set to TRUE, you should not access ActionRow:subtitle.
The subtitle is interpreted as Pango markup if
PreferencesRow:use-markup is set to TRUE.
Its value is a boolean.
Set it with (set! (combo-row:use-subtitle self) value).
Gets whether search is enabled.
If set to TRUE, a search entry will be shown in the popup that
allows to search for items in the list.
Search requires ComboRow:expression to be set.
Passed: a <AdwComboRow>.
a combo row
Returned: a boolean.
whether the popup includes a search entry
Gets the expression used to obtain strings from items.
Passed: a <AdwComboRow>.
a combo row
Returned: a <GtkExpression>, or #f.
the expression used to obtain strings from items
Gets the factory for populating list items.
Passed: a <AdwComboRow>.
a combo row
Returned: a <GtkListItemFactory>, or
#f.
the factory in use
Gets the factory that’s currently used to create header widgets for the popup.
Passed: a <AdwComboRow>.
a combo row
Returned: a <GtkListItemFactory>, or
#f.
The factory in use
Gets the factory for populating list items in the popup.
Passed: a <AdwComboRow>.
a combo row
Returned: a <GtkListItemFactory>, or
#f.
the factory in use
Gets the model that provides the displayed items.
Passed: a <AdwComboRow>.
a combo row
Returned: a <GListModel>, or #f.
The model in use
Returns the match mode that the search filter is using.
Passed: a <AdwComboRow>.
a combo row
Returned: a
<GtkStringFilterMatchMode>.
the match mode of the search filter
Gets the position of the selected item.
Passed: a <AdwComboRow>.
a combo row
Returned: an unsigned 32-bit integer.
the position of the selected item, or Gtk.INVALID_LIST_POSITION
if no item is selected
Gets the selected item.
Passed: a <AdwComboRow>.
a combo row
Returned: a <GObject>, or #f.
the selected item
Gets whether to use the current value as the subtitle.
Passed: a <AdwComboRow>.
a combo row
Returned: a boolean.
whether to use the current value as the subtitle
Creates a new <AdwComboRow>.
Returned: a <GtkWidget>.
the newly created <AdwComboRow>
Sets whether to enable search.
If set to TRUE, a search entry will be shown in the popup that
allows to search for items in the list.
Search requires ComboRow:expression to be set.
Passed: a <AdwComboRow>.
a combo row
Passed: a boolean.
whether to enable search
Sets the expression used to obtain strings from items.
The expression must have a value type of G_TYPE_STRING.
It’s used to bind strings to labels produced by the default factory if
ComboRow:factory is not set, or when ComboRow:use-subtitle
is set to TRUE.
Passed: a <AdwComboRow>.
a combo row
Passed, or left out: a <GtkExpression>, or
#f.
an expression
Sets the factory for populating list items.
This factory is always used for the item in the row. It is also used
for items in the popup unless ComboRow:list-factory is set.
Passed: a <AdwComboRow>.
a combo row
Passed, or left out: a
<GtkListItemFactory>, or #f.
the factory to use
Sets the factory to use for creating header widgets for the popup.
Passed: a <AdwComboRow>.
a combo row
Passed, or left out: a
<GtkListItemFactory>, or #f.
the factory to use
Sets the factory for populating list items in the popup.
If this is not set, ComboRow:factory is used.
Passed: a <AdwComboRow>.
a combo row
Passed, or left out: a
<GtkListItemFactory>, or #f.
the factory to use
Sets the model that provides the displayed items.
Passed: a <AdwComboRow>.
a combo row
Passed, or left out: a <GListModel>, or
#f.
the model to use
Sets the match mode for the search filter.
Passed: a <AdwComboRow>.
a combo row
Passed: a
<GtkStringFilterMatchMode>, or
one of its symbols.
the new match mode
Selects the item at the given position.
Passed: a <AdwComboRow>.
a combo row
Passed: an unsigned 32-bit integer.
the position of the item to select, or Gtk.INVALID_LIST_POSITION
Sets whether to use the current value as the subtitle.
If you use a custom list item factory, you will need to give the row a
name conversion expression with ComboRow:expression.
If set to TRUE, you should not access ActionRow:subtitle.
The subtitle is interpreted as Pango markup if
PreferencesRow:use-markup is set to TRUE.
Passed: a <AdwComboRow>.
a combo row
Passed: a boolean.
whether to use the current value as the subtitle