summaryrefslogtreecommitdiff
path: root/gtk/gtktextutil.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-12-06 02:51:04 +0100
committerBenjamin Otte <otte@redhat.com>2012-12-06 02:57:18 +0100
commit055b5d83d517ebf800a0bebd4c2ee7e912ef95f3 (patch)
tree385175bd981b23f6a5cf7197423001d40d89cee6 /gtk/gtktextutil.c
parent7747910b9d9a58bd6a162a497d6cbfd692df132b (diff)
downloadgtk+-055b5d83d517ebf800a0bebd4c2ee7e912ef95f3.tar.gz
gtk: Use gtk_style_context_get()
... instead of soon-to-be-deprecated gtk_style_context_get_font().
Diffstat (limited to 'gtk/gtktextutil.c')
-rw-r--r--gtk/gtktextutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c
index d5a60c492b..a2811f2d3c 100644
--- a/gtk/gtktextutil.c
+++ b/gtk/gtktextutil.c
@@ -298,7 +298,7 @@ gtk_text_view_set_attributes_from_style (GtkTextView *text_view,
if (values->font)
pango_font_description_free (values->font);
- values->font = pango_font_description_copy (gtk_style_context_get_font (context, state));
+ gtk_style_context_get (context, state, "font", &values->font, NULL);
}
cairo_surface_t *