CellRendererCombo

Renders a combobox in a cell

gtk.cell_renderer_combo.CellRendererCombo renders text in a cell like gtk.cell_renderer_text.CellRendererText from which it is derived. But while gtk.cell_renderer_text.CellRendererText offers a simple entry to edit the text, gtk.cell_renderer_combo.CellRendererCombo offers a gtk.combo_box.ComboBox widget to edit the text. The values to display in the combo box are taken from the tree model specified in the gtk.cell_renderer_combo.CellRendererCombo: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 gtk.cell_renderer_combo.CellRendererCombo:text-column property. Further properties of the combo box can be set in a handler for the GtkCellRenderer::editing-started signal.

More...

Constructors

this
this()

Creates a new gtk.cell_renderer_combo.CellRendererCombo. Adjust how text is drawn using object properties. Object properties can be set globally (with gobject.object.ObjectG.set). Also, with gtk.tree_view_column.TreeViewColumn, you can bind a property to a value in a gtk.tree_model.TreeModel. For example, you can bind the “text” property on the cell renderer to a string value in the model, thus rendering a different string in each row of the gtk.tree_view.TreeView.

Members

Functions

connectChanged
ulong connectChanged(T callback, Flag!"After" after)

Connect to Changed signal.

Inherited Members

From CellRendererText

setFixedHeightFromFont
void setFixedHeightFromFont(int numberOfRows)

Sets the height of a renderer to explicitly be determined by the “font” and “y_pad” property set on it. Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is inflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). If number_of_rows is -1, then the fixed height is unset, and the height is determined by the properties again.

connectEdited
ulong connectEdited(T callback, Flag!"After" after)

Connect to Edited signal.

Detailed Description

Deprecated: List views use widgets to display their contents. You should use gtk.drop_down.DropDown instead