Package: gtk
Class gtk-cell-renderer-combo
SuperclassesDocumented Subclasses
None
Direct SlotsDetails 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