diff options
author | Pablo Barciela <[email protected]> | 2018-07-08 13:28:13 +0200 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2018-07-08 13:28:13 +0200 |
commit | e06fd706690df1fb28548b15697d554b2512b32c (patch) | |
tree | 027da575eedb4d18a3f7000288e0dff3b64580fd | |
parent | a52e89c5d7b0baf299ee36c759538cfc75cb1b84 (diff) | |
download | mate-media-e06fd706690df1fb28548b15697d554b2512b32c.tar.bz2 mate-media-e06fd706690df1fb28548b15697d554b2512b32c.tar.xz |
gvc-mixer-dialog.c: avoid deprecated 'gtk_widget_override_font'
-rw-r--r-- | mate-volume-control/gvc-mixer-dialog.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); } |