summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderer.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-09-11 03:31:04 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:43 +0200
commitec6e97be4d704ff802f286247e4329ea9d5ee73a (patch)
tree92f1b6813d855c04e13914feef4dc3dcd6714361 /gtk/gtkcellrenderer.c
parent67284a57de3a3fa8054c6bcc88bea0b688d5908b (diff)
downloadgtk+-ec6e97be4d704ff802f286247e4329ea9d5ee73a.tar.gz
API: Remove gtk_cell_renderer_render()
The next commit will rename gtk_cell_renderer_render_cairo() to gtk_cell_renderer_render() again
Diffstat (limited to 'gtk/gtkcellrenderer.c')
-rw-r--r--gtk/gtkcellrenderer.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index 1431e3848a..dcad47e544 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -612,53 +612,6 @@ gtk_cell_renderer_get_size (GtkCellRenderer *cell,
}
/**
- * gtk_cell_renderer_render:
- * @cell: a #GtkCellRenderer
- * @window: a #GdkDrawable to draw to
- * @widget: the widget owning @window
- * @background_area: entire cell area (including tree expanders and maybe
- * padding on the sides)
- * @cell_area: area normally rendered by a cell renderer
- * @expose_area: area that actually needs updating
- * @flags: flags that affect rendering
- *
- * Invokes the virtual render function of the #GtkCellRenderer. The three
- * passed-in rectangles are areas of @window. Most renderers will draw within
- * @cell_area; the xalign, yalign, xpad, and ypad fields of the #GtkCellRenderer
- * should be honored with respect to @cell_area. @background_area includes the
- * blank space around the cell, and also the area containing the tree expander;
- * so the @background_area rectangles for all cells tile to cover the entire
- * @window. @expose_area is a clip rectangle.
- **/
-void
-gtk_cell_renderer_render (GtkCellRenderer *cell,
- GdkWindow *window,
- GtkWidget *widget,
- const GdkRectangle *background_area,
- const GdkRectangle *cell_area,
- const GdkRectangle *expose_area,
- GtkCellRendererState flags)
-{
- cairo_t *cr;
-
- g_return_if_fail (GTK_IS_CELL_RENDERER (cell));
- g_return_if_fail (GTK_CELL_RENDERER_GET_CLASS (cell)->render != NULL);
-
- cr = gdk_cairo_create (window);
- gdk_cairo_rectangle (cr, expose_area);
- cairo_clip (cr);
-
- gtk_cell_renderer_render_cairo (cell,
- cr,
- widget,
- background_area,
- cell_area,
- flags);
-
- cairo_destroy (cr);
-}
-
-/**
* gtk_cell_renderer_render_cairo:
* @cell: a #GtkCellRenderer
* @cr: a cairo context to draw to