GtkComboBox
A widget used to choose from a list of items.
Object Hierarchy
Direct Subclasses
Implemented Interfaces
Description
The GtkComboBox is a replacement for the
GtkOptionMenu and GtkCombo
widgets, providing a solution that allows the user to choose from a list of
options.
A GtkComboBox implements the GtkCellLayout interface,
that provides a number of useful methods for managing the contents, adopting
a model-view pattern. The
constructor can be associated with
an optional GtkTreeModel, which can otherwise be
added later with the set_model()
method.
Alternatively, the new_text
function creates a simple GtkComboBox and associated
GtkListStore model. A
GtkCellRendererText is also created and packed in the
new combo box. In this simple combo box each list item is a text string that
can be selected. The convenience methods
append_text() ,
prepend_text() ,
insert_text() and
remove_text() can be used
to manage the contents of the GtkComboBox.
Constructors
--
Creates a new GtkComboBox
--
Constructs a new text combo box
Signals
"changed"
The "changed" signal is emitted when a new item in the combo box is selected.