diff --git a/docs/reference/gtk/tmpl/.gitignore b/docs/reference/gtk/tmpl/.gitignore index 7bfa2cc373..acc4adac8a 100644 --- a/docs/reference/gtk/tmpl/.gitignore +++ b/docs/reference/gtk/tmpl/.gitignore @@ -13,6 +13,7 @@ gtkcelllayout.sgml gtkcellrenderer.sgml gtkcellrendereraccel.sgml gtkcellrenderercombo.sgml +gtkcellrendererpixbuf.sgml gtkcellrendererprogress.sgml gtkcellrendererspin.sgml gtkcellrenderertext.sgml diff --git a/docs/reference/gtk/tmpl/gtkcellrendererpixbuf.sgml b/docs/reference/gtk/tmpl/gtkcellrendererpixbuf.sgml deleted file mode 100644 index cad7a4419d..0000000000 --- a/docs/reference/gtk/tmpl/gtkcellrendererpixbuf.sgml +++ /dev/null @@ -1,98 +0,0 @@ - -GtkCellRendererPixbuf - - -Renders a pixbuf in a cell - - - -A #GtkCellRendererPixbuf can be used to render an image in a cell. It allows to render -either a given #GdkPixbuf (set via the -pixbuf property) or a stock icon -(set via the stock-id property). - - - -To support the tree view, #GtkCellRendererPixbuf also supports rendering two alternative -pixbufs, when the is-expander property -is %TRUE. If the is-expanded property -is %TRUE and the -pixbuf-expander-open -property is set to a pixbuf, it renders that pixbuf, if the -is-expanded property is %FALSE and -the -pixbuf-expander-closed -property is set to a pixbuf, it renders that one. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@void: -@Returns: - - diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index 95d031561a..f50b3aeee9 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -26,6 +26,26 @@ #include "gtkprivate.h" +/** + * SECTION:gtkcellrendererpixbuf + * @Short_description: Renders a pixbuf in a cell + * @Title: GtkCellRendererPixbuf + * + * A #GtkCellRendererPixbuf can be used to render an image in a cell. It allows + * to render either a given #GdkPixbuf (set via the + * #GtkCellRendererPixbuf:pixbuf property) or a stock icon (set via the + * #GtkCellRendererPixbuf:stock-id property). + * + * To support the tree view, #GtkCellRendererPixbuf also supports rendering two + * alternative pixbufs, when the #GtkCellRenderer:is-expander property is %TRUE. + * If the #GtkCellRenderer:is-expanded property is %TRUE and the + * #GtkCellRendererPixbuf:pixbuf-expander-open property is set to a pixbuf, it + * renders that pixbuf, if the #GtkCellRenderer:is-expanded property is %FALSE + * and the #GtkCellRendererPixbuf:pixbuf-expander-closed property is set to a + * pixbuf, it renders that one. + */ + + static void gtk_cell_renderer_pixbuf_get_property (GObject *object, guint param_id, GValue *value,