gtk: Use gtk_style_context_get()

... instead of soon-to-be-deprecated gtk_style_context_get_font().
This commit is contained in:
Benjamin Otte
2012-12-06 02:51:04 +01:00
parent 7747910b9d
commit 055b5d83d5
4 changed files with 10 additions and 7 deletions

View File

@ -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 *