From e06fd706690df1fb28548b15697d554b2512b32c Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 8 Jul 2018 13:28:13 +0200 Subject: gvc-mixer-dialog.c: avoid deprecated 'gtk_widget_override_font' --- mate-volume-control/gvc-mixer-dialog.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mate-volume-control') diff --git a/mate-volume-control/gvc-mixer-dialog.c b/mate-volume-control/gvc-mixer-dialog.c index b36232c..1f28427 100644 --- a/mate-volume-control/gvc-mixer-dialog.c +++ b/mate-volume-control/gvc-mixer-dialog.c @@ -1307,7 +1307,12 @@ make_label_bold (GtkLabel *label) * from the current state of the widget, which comes from the * theme or user prefs, since the font desc only has the * 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); } -- cgit v1.2.1