You can use [gtk.box.Box] instead
gtk.cell_view
Module for [CellView] class
Types 3
A widget displaying a single row of a GtkTreeModel
A [gtk.cell_view.CellView] displays a single row of a [gtk.tree_model.TreeModel] using a [gtk.cell_area.CellArea] and [gtk.cell_area_context.CellAreaContext]. A [gtk.cell_area_context.CellAreaContext] can be provided to the [gtk.cell_view.CellView] at construction time in order to keep the cellview in context of a group of cell views, this ensures that the renderers displayed will be properly aligned with each other (like the aligned cells in the menus of [gtk.combo_box.ComboBox]).
[gtk.cell_view.CellView] is [gtk.orientable.Orientable] in order to decide in which orientation the underlying [gtk.cell_area_context.CellAreaContext] should be allocated. Taking the [gtk.combo_box.ComboBox] menu as an example, cellviews should be oriented horizontally if the menus are listed top-to-bottom and thus all share the same width but may have separate individual heights (left-to-right menus should be allocated vertically since they all share the same height but may have variable widths).
CSS nodes
GtkCellView has a single CSS node with name cellview.
Deprecated
CellViewGidBuilder builder()Get builder for [gtk.cell_view.CellView] Returns: New builder objectgtk.cell_area.CellArea cellArea() @propertyGet `cellArea` property. Returns: The [gtk.cell_area.CellArea] rendering cellsgtk.cell_area_context.CellAreaContext cellAreaContext() @propertyGet `cellAreaContext` property. Returns: The [gtk.cellareacontext.CellAreaContext] used to compute the geometry of the cell view.bool drawSensitive() @propertyGet `drawSensitive` property. Returns: Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensitive when t...void drawSensitive(bool propval) @propertySet `drawSensitive` property. Params: propval = Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensiti...bool fitModel() @propertyGet `fitModel` property. Returns: Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesn't change wh...void fitModel(bool propval) @propertySet `fitModel` property. Params: propval = Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesn't ...void model(gtk.tree_model.TreeModel propval) @propertySet `model` property. Params: propval = The model for cell viewgtk.cell_view.CellView newWithContext(gtk.cell_area.CellArea area, gtk.cell_area_context.CellAreaContext context)Creates a new [gtk.cellview.CellView] widget with a specific [gtk.cellarea.CellArea] to layout cells and a specific [gtk.cellareacontext.CellAreaContext].gtk.cell_view.CellView newWithMarkup(string markup)Creates a new [gtk.cellview.CellView] widget, adds a [gtk.cellrenderertext.CellRendererText] to it, and makes it show markup. The text can be marked up with the [Pango text markup language](https:/...gtk.cell_view.CellView newWithText(string text)Creates a new [gtk.cellview.CellView] widget, adds a [gtk.cellrenderer_text.CellRendererText] to it, and makes it show text.gtk.cell_view.CellView newWithTexture(gdk.texture.Texture texture)Creates a new [gtk.cellview.CellView] widget, adds a [gtk.cellrenderer_pixbuf.CellRendererPixbuf] to it, and makes it show texture.gtk.tree_path.TreePath getDisplayedRow()Returns a [gtk.tree_path.TreePath] referring to the currently displayed row. If no row is currently displayed, null is returned. Returns: the currently displayed rowbool getDrawSensitive()Gets whether cellview is configured to draw all of its cells in a sensitive state. Returns: whether cellview draws all of its cells in a sensitive statebool getFitModel()Gets whether cellview is configured to request space to fit the entire [gtk.treemodel.TreeModel]. Returns: whether cellview requests space to fit the entire [gtk.treemodel.TreeModel].gtk.tree_model.TreeModel getModel()Returns the model for cellview. If no model is used null is returned. Returns: a [gtk.treemodel.TreeModel] usedvoid setDisplayedRow(gtk.tree_path.TreePath path = null)Sets the row of the model that is currently displayed by the [gtk.cellview.CellView]. If the path is unset, then the contents of the cellview “stick” at their last value; this is not normally a...void setDrawSensitive(bool drawSensitive)Sets whether cellview should draw all of its cells in a sensitive state, this is used by [gtk.combobox.ComboBox] menus to ensure that rows with insensitive cells that contain children appear sensit...void setFitModel(bool fitModel)Sets whether cellview should request space to fit the entire [gtk.treemodel.TreeModel].void setModel(gtk.tree_model.TreeModel model = null)Sets the model for cellview. If cellview already has a model set, it will remove it before setting the new model. If model is null, then it will unset the old model.T cellArea(gtk.cell_area.CellArea propval)Set `cellArea` property. Params: propval = The [gtk.cell_area.CellArea] rendering cellsT cellAreaContext(gtk.cell_area_context.CellAreaContext propval)Set `cellAreaContext` property. Params: propval = The [gtk.cellareacontext.CellAreaContext] used to compute the geometry of the cell view.T drawSensitive(bool propval)Set `drawSensitive` property. Params: propval = Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensiti...T fitModel(bool propval)Set `fitModel` property. Params: propval = Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesn't ...T model(gtk.tree_model.TreeModel propval)Set `model` property. Params: propval = The model for cell view