[empathy] empathy_cell_renderer_expander_render: update to new API
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_cell_renderer_expander_render: update to new API
- Date: Mon, 4 Oct 2010 09:15:54 +0000 (UTC)
commit cce96b15f7ee09f7666d6b2e081ad8bddc197d3c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Sep 29 16:03:14 2010 +0200
empathy_cell_renderer_expander_render: update to new API
libempathy-gtk/empathy-cell-renderer-expander.c | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/libempathy-gtk/empathy-cell-renderer-expander.c b/libempathy-gtk/empathy-cell-renderer-expander.c
index fb36043..d9067e0 100644
--- a/libempathy-gtk/empathy-cell-renderer-expander.c
+++ b/libempathy-gtk/empathy-cell-renderer-expander.c
@@ -73,11 +73,10 @@ static void empathy_cell_renderer_expander_get_size (GtkCellRenderer
gint *width,
gint *height);
static void empathy_cell_renderer_expander_render (GtkCellRenderer *cell,
- GdkWindow *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);
static gboolean empathy_cell_renderer_expander_activate (GtkCellRenderer *cell,
GdkEvent *event,
@@ -294,11 +293,10 @@ empathy_cell_renderer_expander_get_size (GtkCellRenderer *cell,
static void
empathy_cell_renderer_expander_render (GtkCellRenderer *cell,
- GdkWindow *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)
{
EmpathyCellRendererExpander *expander;
@@ -328,7 +326,8 @@ empathy_cell_renderer_expander_render (GtkCellRenderer *cell,
} else
expander_style = priv->expander_style;
- empathy_cell_renderer_expander_get_size (cell, widget, cell_area,
+ empathy_cell_renderer_expander_get_size (cell, widget,
+ (GdkRectangle *) cell_area,
&x_offset, &y_offset,
NULL, NULL);
@@ -338,9 +337,8 @@ empathy_cell_renderer_expander_render (GtkCellRenderer *cell,
NULL);
gtk_paint_expander (gtk_widget_get_style (widget),
- window,
+ cr,
GTK_STATE_NORMAL,
- expose_area,
widget,
"treeview",
cell_area->x + x_offset + xpad + priv->expander_size / 2,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]