aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-cell-renderer-expander.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-29 22:03:14 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-10-04 16:41:29 +0800
commitcce96b15f7ee09f7666d6b2e081ad8bddc197d3c (patch)
treee7be94b8412f9a4f3ea55f088feece5ce6e626e4 /libempathy-gtk/empathy-cell-renderer-expander.c
parent8fda16b2e760ca46315aa6b9ef7434e741940a92 (diff)
downloadgsoc2013-empathy-cce96b15f7ee09f7666d6b2e081ad8bddc197d3c.tar
gsoc2013-empathy-cce96b15f7ee09f7666d6b2e081ad8bddc197d3c.tar.gz
gsoc2013-empathy-cce96b15f7ee09f7666d6b2e081ad8bddc197d3c.tar.bz2
gsoc2013-empathy-cce96b15f7ee09f7666d6b2e081ad8bddc197d3c.tar.lz
gsoc2013-empathy-cce96b15f7ee09f7666d6b2e081ad8bddc197d3c.tar.xz
gsoc2013-empathy-cce96b15f7ee09f7666d6b2e081ad8bddc197d3c.tar.zst
gsoc2013-empathy-cce96b15f7ee09f7666d6b2e081ad8bddc197d3c.zip
empathy_cell_renderer_expander_render: update to new API
Diffstat (limited to 'libempathy-gtk/empathy-cell-renderer-expander.c')
-rw-r--r--libempathy-gtk/empathy-cell-renderer-expander.c20
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 fb360431f..d9067e06d 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,