summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererpixbuf.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2011-04-11 22:47:18 +0100
committerJavier Jardón <jjardon@gnome.org>2011-04-11 23:07:41 +0100
commit4a7400db99cf5e3cb3b25b79f0d30e79329cf906 (patch)
treee0bcc0c7cbb02b9a52ec32800f992059c8f4716b /gtk/gtkcellrendererpixbuf.c
parent3990af227f5f14b41855a019bba69873687c2172 (diff)
downloadgtk+-4a7400db99cf5e3cb3b25b79f0d30e79329cf906.tar.gz
Move documentation to inline comments: GtkCellRendererPixbuf
Diffstat (limited to 'gtk/gtkcellrendererpixbuf.c')
-rw-r--r--gtk/gtkcellrendererpixbuf.c20
1 files changed, 20 insertions, 0 deletions
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,