aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-cell-renderer-expander.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-10 19:32:44 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-11 19:37:18 +0800
commitd7ef6ba2bb7daf43b5b05a25f314618a50710832 (patch)
tree631c81746334ad89bc61aa883a28da5b73bd1fb7 /libempathy-gtk/empathy-cell-renderer-expander.c
parent9b16b39e05f3f9428605d93f0e1e277660442117 (diff)
downloadgsoc2013-empathy-d7ef6ba2bb7daf43b5b05a25f314618a50710832.tar
gsoc2013-empathy-d7ef6ba2bb7daf43b5b05a25f314618a50710832.tar.gz
gsoc2013-empathy-d7ef6ba2bb7daf43b5b05a25f314618a50710832.tar.bz2
gsoc2013-empathy-d7ef6ba2bb7daf43b5b05a25f314618a50710832.tar.lz
gsoc2013-empathy-d7ef6ba2bb7daf43b5b05a25f314618a50710832.tar.xz
gsoc2013-empathy-d7ef6ba2bb7daf43b5b05a25f314618a50710832.tar.zst
gsoc2013-empathy-d7ef6ba2bb7daf43b5b05a25f314618a50710832.zip
Don't use deprecated gtk_paint_expander()
Diffstat (limited to 'libempathy-gtk/empathy-cell-renderer-expander.c')
-rw-r--r--libempathy-gtk/empathy-cell-renderer-expander.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/libempathy-gtk/empathy-cell-renderer-expander.c b/libempathy-gtk/empathy-cell-renderer-expander.c
index 8e363aa8a..d6fa87748 100644
--- a/libempathy-gtk/empathy-cell-renderer-expander.c
+++ b/libempathy-gtk/empathy-cell-renderer-expander.c
@@ -336,14 +336,12 @@ empathy_cell_renderer_expander_render (GtkCellRenderer *cell,
"ypad", &ypad,
NULL);
- gtk_paint_expander (gtk_widget_get_style (widget),
- cr,
- GTK_STATE_NORMAL,
- widget,
- "treeview",
- cell_area->x + x_offset + xpad + priv->expander_size / 2,
- cell_area->y + y_offset + ypad + priv->expander_size / 2,
- expander_style);
+ gtk_render_expander (gtk_widget_get_style_context (widget),
+ cr,
+ cell_area->x + x_offset + xpad,
+ cell_area->y + y_offset + ypad,
+ priv->expander_size,
+ priv->expander_size);
}
static void