Superclass: cell-renderer-text
cell-renderer-combo renders text in a cell like cell-renderer-text from which it is derived. But while cell-renderer-text offers a simple entry to edit the text, cell-renderer-combo offers a combo-box or combo-box-entry widget to edit the text. The values to display in the combo box are taken from the tree model specified in the model property.
The combo cell renderer takes care of adding a text cell renderer to the combo box and sets it to display the column specified by its text-column property. Further properties of the comnbo box can be set in a handler for the editing-started signal.
Slots:
boolean
. Accessor: cell-renderer-combo-has-entry
.
If TRUE, the cell renderer will include an entry and allow to enter values other than the ones in the popup list.
Default value: TRUE
cell-renderer-combo-model
.
Holds a tree model containing the possible values for the combo box. Use the cell-renderer-combo-text-column to specify the column holding the values.
integer
. Accessor: cell-renderer-combo-text-column
.
Specifies the model column which holds the possible values for the combo box.
Note that this refers to the model specified in the model property, not the model backing the tree view to which this cell renderer is attached.
cell-renderer-combo automatically adds a text cell renderer for this column to its combo box.
Default value: -1
Signals:
string
), (iter tree-iter) => void. Options: run-last.
This signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys. Contrary to combo-box, changed
is not emitted for changes made to a selected item in the entry. The argument iter corresponds to the newly selected item in the combo box and it is relative to the tree-model set via the model property on cell-renderer-combo.
Note that as soon as you change the model displayed in the tree view, the tree view will immediately cease the editing operating. This means that you most probably want to refrain from changing the model until the combo cell renderer emits the cell-renderer-text::edited or cell-renderer::editing-canceled signal.