Skip to content

Commit

Permalink
gvc-mixer-dialog.c: avoid deprecated 'gtk_widget_override_font'
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Jul 8, 2018
1 parent a52e89c commit e06fd70
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mate-volume-control/gvc-mixer-dialog.c
Expand Up @@ -1307,7 +1307,12 @@ make_label_bold (GtkLabel *label)
* from the current state of the widget, which comes from the * from the current state of the widget, which comes from the
* theme or user prefs, since the font desc only has the * theme or user prefs, since the font desc only has the
* weight flag turned on. */ * weight flag turned on. */
gtk_widget_override_font (GTK_WIDGET (label), font_desc); PangoAttrList *attrs = pango_attr_list_new ();
PangoAttribute *font_desc_attr = pango_attr_font_desc_new (font_desc);
pango_attr_list_insert (attrs, font_desc_attr);
gtk_label_set_attributes (label, attrs);
pango_attr_list_unref (attrs);

pango_font_description_free (font_desc); pango_font_description_free (font_desc);
} }


Expand Down

0 comments on commit e06fd70

Please sign in to comment.