[gtk+/rendering-cleanup-next: 152/155] API: Remove gtk_cell_renderer_render()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next: 152/155] API: Remove gtk_cell_renderer_render()
- Date: Wed, 15 Sep 2010 03:09:41 +0000 (UTC)
commit 50d1183f1e1f406ebcc4259936494da5b4ddb2f9
Author: Benjamin Otte <otte redhat com>
Date: Sat Sep 11 03:31:04 2010 +0200
API: Remove gtk_cell_renderer_render()
The next commit will rename gtk_cell_renderer_render_cairo() to
gtk_cell_renderer_render() again
gtk/gtkcellrenderer.c | 47 -----------------------------------------------
gtk/gtkcellrenderer.h | 7 -------
2 files changed, 0 insertions(+), 54 deletions(-)
---
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index bd2c6ae..5a85c38 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
diff --git a/gtk/gtkcellrenderer.h b/gtk/gtkcellrenderer.h
index ef49aa1..2f99dd5 100644
--- a/gtk/gtkcellrenderer.h
+++ b/gtk/gtkcellrenderer.h
@@ -117,13 +117,6 @@ void gtk_cell_renderer_get_size (GtkCellRenderer *cell,
gint *y_offset,
gint *width,
gint *height);
-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);
void gtk_cell_renderer_render_cairo (GtkCellRenderer *cell,
cairo_t *cr,
GtkWidget *widget,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]