gtkComboBoxEntryNew(show = TRUE)
gtkComboBoxEntryNewWithModel(model, text.column)
gtkComboBoxEntryNewText()
gtkComboBoxEntrySetTextColumn(object, text.column)
gtkComboBoxEntryGetTextColumn(object)
gtkComboBoxEntry(show = TRUE)
gtkComboBoxEntrySetTextColumn
),
and the entry will show the content of the text column in the selected row.
To get the text from the entry, use gtkComboBoxGetActiveText
.
The changed signal will be emitted while typing into a GtkComboBoxEntry,
as well as when selecting an item from the GtkComboBoxEntry's list. Use
gtkComboBoxGetActive
or gtkComboBoxGetActiveIter
to discover
whether an item was actually selected from the list.
Connect to the activate signal of the GtkEntry (use gtkBinGetChild
)
to detect when the user actually finishes entering text.
The convenience API to construct simple text-only gtkComboBoxEntryNewText
.
If you have special needs that go beyond a simple entry (e.g. input validation),
it is possible to replace the child entry by a different widget using
gtkContainerRemove
and gtkContainerAdd
.gtkComboBoxEntry
is the equivalent of gtkComboBoxEntryNew
.