[giggle/gtk3: 4/6] Port to new GtkCellRendererClass "render" vfunction
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle/gtk3: 4/6] Port to new GtkCellRendererClass "render" vfunction
- Date: Wed, 27 Oct 2010 01:56:42 +0000 (UTC)
commit 3c6d8a04c35f8b51f69a479b76d9e1a26206e90d
Author: Javier Jardón <jjardon gnome org>
Date: Wed Oct 27 03:04:21 2010 +0200
Port to new GtkCellRendererClass "render" vfunction
src/giggle-spaning-renderer.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/giggle-spaning-renderer.c b/src/giggle-spaning-renderer.c
index 418c59f..0c08723 100644
--- a/src/giggle-spaning-renderer.c
+++ b/src/giggle-spaning-renderer.c
@@ -85,7 +85,7 @@ spaning_renderer_set_property (GObject *object,
static void
spaning_renderer_get_size (GtkCellRenderer *cell,
GtkWidget *widget,
- GdkRectangle *cell_area,
+ const GdkRectangle *cell_area,
gint *x_offset,
gint *y_offset,
gint *width,
@@ -96,11 +96,10 @@ spaning_renderer_get_size (GtkCellRenderer *cell,
static void
spaning_renderer_render (GtkCellRenderer *cell,
- GdkDrawable *window,
+ cairo_t *cr,
GtkWidget *widget,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
- GdkRectangle *expose_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags)
{
GiggleSpaningRendererPriv *priv = GET_PRIV (cell);
@@ -140,8 +139,7 @@ spaning_renderer_render (GtkCellRenderer *cell,
real_background_area.height = cell_area->height;
GTK_CELL_RENDERER_CLASS (giggle_spaning_renderer_parent_class)->render
- (cell, window, widget, &real_background_area, &real_cell_area,
- &real_cell_area, flags);
+ (cell, cr, widget, &real_background_area, &real_cell_area, flags);
g_list_free (columns);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]