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

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