Package: gtk
Class gtk-cell-renderer-combo
SuperclassesDocumented Subclasses
None
Direct Slotshas-entry The has-entry property of type :boolean (Read / Write) 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 model The model property of type gtk-tree-model (Read / Write)
Holds a tree model containing the possible values for the combo box. Use the text-column property to specify the column holding the values. text-column The text-column property of type :int (Read / Write) 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. gtk-cell-renderer-combo automatically adds a text cell renderer for this column to its combo box. Allowed values: >= -1 Default value: -1 Details gtk-cell-renderer-combo renders text in a cell like gtk-cell-renderer-text from which it is derived. But while gtk-cell-renderer-text offers a simple entry to edit the text, gtk-cell-renderer-combo offers a gtk-combo-box or gtk-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 combo box can be set in a handler for the "editing-started" signal. The gtk-cell-renderer-combo cell renderer was added in GTK 2.6. Signal DetailsThe "changed" signallambda (combo path iter) :run-lastThe 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 the gtk-combo-box widget, the "changed" signal is not emitted for changes made to a selected item in the entry. The iter argument corresponds to the newly selected item in the combo box and it is relative to the gtk-tree-model object set via the model property on the gtk-cell-renderer-combo object. 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 edited or "editing-canceled" signal.
| Slot Access FunctionsInherited Slot Access Functions |
2020-6-20