diff --git a/docs/reference/gtk/tmpl/.gitignore b/docs/reference/gtk/tmpl/.gitignore index 227c4864a4..7bfa2cc373 100644 --- a/docs/reference/gtk/tmpl/.gitignore +++ b/docs/reference/gtk/tmpl/.gitignore @@ -12,6 +12,7 @@ gtkcelleditable.sgml gtkcelllayout.sgml gtkcellrenderer.sgml gtkcellrendereraccel.sgml +gtkcellrenderercombo.sgml gtkcellrendererprogress.sgml gtkcellrendererspin.sgml gtkcellrenderertext.sgml diff --git a/docs/reference/gtk/tmpl/gtkcellrenderercombo.sgml b/docs/reference/gtk/tmpl/gtkcellrenderercombo.sgml deleted file mode 100644 index 1a989c9d28..0000000000 --- a/docs/reference/gtk/tmpl/gtkcellrenderercombo.sgml +++ /dev/null @@ -1,78 +0,0 @@ - -GtkCellRendererCombo - - -Renders a combobox in a cell - - - -#GtkCellRendererCombo 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. - - - - - - - - - - - - - - - - - - - - - - - - -@cellrenderercombo: the object which received the signal. -@arg1: -@arg2: - - - - - - - - - - - - - - - - - - - - - -@void: -@Returns: - - diff --git a/gtk/gtkcellrenderercombo.c b/gtk/gtkcellrenderercombo.c index ad154c4aac..d14908a535 100644 --- a/gtk/gtkcellrenderercombo.c +++ b/gtk/gtkcellrenderercombo.c @@ -30,6 +30,27 @@ #include "gtkmarshalers.h" #include "gtkprivate.h" + +/** + * SECTION:gtkcellrenderercombo + * @Short_description: Renders a combobox in a cell + * @Title: GtkCellRendererCombo + * + * #GtkCellRendererCombo 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 #GtkCellRendererCombo: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 + * #GtkCellRendererCombo:text-column property. Further properties of the comnbo box + * can be set in a handler for the #GtkCellRenderer::editing-started signal. + * + * The #GtkCellRendererCombo cell renderer was added in GTK+ 2.6. + */ + + struct _GtkCellRendererComboPrivate { GtkTreeModel *model;