+ GObjectClass *object_class = G_OBJECT_CLASS (class);
+ GtkCellRendererClass *cell_class = GTK_CELL_RENDERER_CLASS (class);
+
+ object_class->finalize = gtk_cell_renderer_pixbuf_finalize;
+
+ object_class->get_property = gtk_cell_renderer_pixbuf_get_property;
+ object_class->set_property = gtk_cell_renderer_pixbuf_set_property;
+
+ cell_class->get_size = gtk_cell_renderer_pixbuf_get_size;
+ cell_class->render = gtk_cell_renderer_pixbuf_render;
+
+ g_object_class_install_property (object_class,
+ PROP_PIXBUF,
+ g_param_spec_object ("pixbuf",
+ P_("Pixbuf Object"),
+ P_("The pixbuf to render"),
+ GDK_TYPE_PIXBUF,
+ GTK_PARAM_READWRITE));
+
+ g_object_class_install_property (object_class,
+ PROP_PIXBUF_EXPANDER_OPEN,
+ g_param_spec_object ("pixbuf-expander-open",
+ P_("Pixbuf Expander Open"),
+ P_("Pixbuf for open expander"),
+ GDK_TYPE_PIXBUF,
+ GTK_PARAM_READWRITE));
+
+ g_object_class_install_property (object_class,
+ PROP_PIXBUF_EXPANDER_CLOSED,
+ g_param_spec_object ("pixbuf-expander-closed",
+ P_("Pixbuf Expander Closed"),
+ P_("Pixbuf for closed expander"),
+ GDK_TYPE_PIXBUF,
+ GTK_PARAM_READWRITE));
+
+ g_object_class_install_property (object_class,
+ PROP_STOCK_ID,
+ g_param_spec_string ("stock-id",
+ P_("Stock ID"),
+ P_("The stock ID of the stock icon to render"),
+ NULL,
+ GTK_PARAM_READWRITE));
+
+ g_object_class_install_property (object_class,
+ PROP_STOCK_SIZE,
+ g_param_spec_uint ("stock-size",
+ P_("Size"),
+ P_("The GtkIconSize value that specifies the size of the rendered icon"),
+ 0,
+ G_MAXUINT,
+ GTK_ICON_SIZE_MENU,
+ GTK_PARAM_READWRITE));
+
+ g_object_class_install_property (object_class,
+ PROP_STOCK_DETAIL,
+ g_param_spec_string ("stock-detail",
+ P_("Detail"),
+ P_("Render detail to pass to the theme engine"),
+ NULL,
+ GTK_PARAM_READWRITE));
+
+
+ /**
+ * GtkCellRendererPixbuf:icon-name:
+ *
+ * The name of the themed icon to display.
+ * This property only has an effect if not overridden by "stock_id"
+ * or "pixbuf" properties.
+ *
+ * Since: 2.8
+ */
+ g_object_class_install_property (object_class,
+ PROP_ICON_NAME,
+ g_param_spec_string ("icon-name",
+ P_("Icon Name"),
+ P_("The name of the icon from the icon theme"),
+ NULL,
+ GTK_PARAM_READWRITE));
+
+ /**
+ * GtkCellRendererPixbuf:follow-state:
+ *
+ * Specifies whether the rendered pixbuf should be colorized
+ * according to the #GtkCellRendererState.
+ *
+ * Since: 2.8
+ */
+ g_object_class_install_property (object_class,
+ PROP_FOLLOW_STATE,
+ g_param_spec_boolean ("follow-state",
+ P_("Follow State"),
+ P_("Whether the rendered pixbuf should be "
+ "colorized according to the state"),
+ FALSE,
+ GTK_PARAM_READWRITE));
+
+ /**
+ * GtkCellRendererPixbuf:gicon:
+ *
+ * The GIcon representing the icon to display.
+ * If the icon theme is changed, the image will be updated
+ * automatically.
+ *
+ * Since: 2.14
+ */
+ g_object_class_install_property (object_class,
+ PROP_GICON,
+ g_param_spec_object ("gicon",
+ P_("Icon"),
+ P_("The GIcon being displayed"),
+ G_TYPE_ICON,
+ GTK_PARAM_READWRITE));
+
+
+
+ g_type_class_add_private (object_class, sizeof (GtkCellRendererPixbufPrivate));
+
+ gtk_cell_renderer_class_set_accessible_type (cell_class, GTK_TYPE_IMAGE_CELL_ACCESSIBLE);