diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-05 15:33:12 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-05 15:52:39 +0800 |
commit | 3ce67215498ee974d39efc3b49455c9f4d9d4a01 (patch) | |
tree | 38d701219b3aef94fc2ad3f62bff76e778d9d7fb /libempathy-gtk | |
parent | 6d0aaf470a2e8b189370eba8c30f0e7181fbd365 (diff) | |
download | gsoc2013-empathy-3ce67215498ee974d39efc3b49455c9f4d9d4a01.tar gsoc2013-empathy-3ce67215498ee974d39efc3b49455c9f4d9d4a01.tar.gz gsoc2013-empathy-3ce67215498ee974d39efc3b49455c9f4d9d4a01.tar.bz2 gsoc2013-empathy-3ce67215498ee974d39efc3b49455c9f4d9d4a01.tar.lz gsoc2013-empathy-3ce67215498ee974d39efc3b49455c9f4d9d4a01.tar.xz gsoc2013-empathy-3ce67215498ee974d39efc3b49455c9f4d9d4a01.tar.zst gsoc2013-empathy-3ce67215498ee974d39efc3b49455c9f4d9d4a01.zip |
stop using gtk_style_context_get_font
It's been deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=707538
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-cell-renderer-text.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-cell-renderer-text.c b/libempathy-gtk/empathy-cell-renderer-text.c index 8b488f192..5ce735f40 100644 --- a/libempathy-gtk/empathy-cell-renderer-text.c +++ b/libempathy-gtk/empathy-cell-renderer-text.c @@ -298,7 +298,7 @@ cell_renderer_text_update_text (EmpathyCellRendererText *cell, gboolean selected) { EmpathyCellRendererTextPriv *priv; - const PangoFontDescription *font_desc; + PangoFontDescription *font_desc; PangoAttrList *attr_list; PangoAttribute *attr_color = NULL, *attr_size; GtkStyleContext *style; @@ -330,8 +330,11 @@ cell_renderer_text_update_text (EmpathyCellRendererText *cell, attr_list = pango_attr_list_new (); - font_desc = gtk_style_context_get_font (style, GTK_STATE_FLAG_NORMAL); + gtk_style_context_get (style, GTK_STATE_FLAG_NORMAL, + "font", &font_desc, + NULL); font_size = pango_font_description_get_size (font_desc); + pango_font_description_free (font_desc); attr_size = pango_attr_size_new (font_size / 1.2); attr_size->start_index = strlen (priv->name) + 1; attr_size->end_index = -1; |