Synopsis#include <gtk/gtk.h> GtkCellRendererCombo; GtkCellRenderer* gtk_cell_renderer_combo_new (void); Object HierarchyGObject +----GInitiallyUnowned +----GtkObject +----GtkCellRenderer +----GtkCellRendererText +----GtkCellRendererCombo Properties"has-entry" gboolean : Read / Write "model" GtkTreeModel* : Read / Write "text-column" gint : Read / Write DescriptionGtkCellRendererCombo renders text in a cell like GtkCellRendererText from which it is derived. But while GtkCellRendererText offers a simple entry to edit the text, GtkCellRendererCombo offers a GtkComboBox or GtkComboBoxEntry 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. The GtkCellRendererCombo cell renderer was added in GTK+ 2.6. Detailsgtk_cell_renderer_combo_new ()GtkCellRenderer* gtk_cell_renderer_combo_new (void);
Creates a new GtkCellRendererCombo.
Adjust how text is drawn using object properties.
Object properties can be set globally (with
Since 2.6 Property DetailsThe
|
|
the object on which the signal is emitted |
|
a string of the path identifying the edited cell (relative to the tree view model) |
|
the new iter selected in the combo box (relative to the combo box model) |
|
user data set when the signal handler was connected. |
Since 2.14