diff options
author | Benjamin Otte <otte@redhat.com> | 2012-12-06 02:51:04 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-12-06 02:57:18 +0100 |
commit | 055b5d83d517ebf800a0bebd4c2ee7e912ef95f3 (patch) | |
tree | 385175bd981b23f6a5cf7197423001d40d89cee6 /gtk/gtkcellrenderertext.c | |
parent | 7747910b9d9a58bd6a162a497d6cbfd692df132b (diff) | |
download | gtk+-055b5d83d517ebf800a0bebd4c2ee7e912ef95f3.tar.gz |
gtk: Use gtk_style_context_get()
... instead of soon-to-be-deprecated gtk_style_context_get_font().
Diffstat (limited to 'gtk/gtkcellrenderertext.c')
-rw-r--r-- | gtk/gtkcellrenderertext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index e6e663a08b..fcb3f1b297 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -1768,7 +1768,7 @@ get_size (GtkCellRenderer *cell, style_context = gtk_widget_get_style_context (widget); state = gtk_widget_get_state_flags (widget); - font_desc = pango_font_description_copy_static (gtk_style_context_get_font (style_context, state)); + gtk_style_context_get (style_context, state, "font", &font_desc, NULL); pango_font_description_merge_static (font_desc, priv->font, TRUE); if (priv->scale_set) |