From a36e5ceea74fecb7b8f5f196e592a4b633ed6eb3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 23 Dec 2016 11:11:52 +0100 Subject: cellrenderer: Remove render() vfunc Make the last 2 cell renderers create the cairo node themselves. --- gtk/gtkcellrenderer.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'gtk/gtkcellrenderer.h') diff --git a/gtk/gtkcellrenderer.h b/gtk/gtkcellrenderer.h index 6ac40b30cb..cc71027bc4 100644 --- a/gtk/gtkcellrenderer.h +++ b/gtk/gtkcellrenderer.h @@ -100,7 +100,7 @@ struct _GtkCellRenderer * @get_preferred_width_for_height: Called to get a renderer’s natural width for height. * @get_aligned_area: Called to get the aligned area used by @cell inside @cell_area. * @get_size: Called to get the width and height needed to render the cell. Deprecated: 3.0. - * @render: Called to render the content of the #GtkCellRenderer. + * @snapshot: Called to snapshot the content of the #GtkCellRenderer. * @activate: Called to activate the content of the #GtkCellRenderer. * @start_editing: Called to initiate editing the content of the #GtkCellRenderer. * @editing_canceled: Signal gets emitted when the user cancels the process of editing a cell. @@ -145,12 +145,6 @@ struct _GtkCellRendererClass gint *y_offset, gint *width, gint *height); - void (* render) (GtkCellRenderer *cell, - cairo_t *cr, - GtkWidget *widget, - const GdkRectangle *background_area, - const GdkRectangle *cell_area, - GtkCellRendererState flags); void (* snapshot) (GtkCellRenderer *cell, GtkSnapshot *snapshot, GtkWidget *widget, -- cgit v1.2.1