Commit 5a0dc74d authored by Matthias Clasen's avatar Matthias Clasen

Inspector: Use text attributes for monospace labels

parent 0c02bc42
...@@ -106,10 +106,13 @@ init_version (GtkInspectorGeneral *gen) ...@@ -106,10 +106,13 @@ init_version (GtkInspectorGeneral *gen)
static void static void
set_monospace_font (GtkWidget *w) set_monospace_font (GtkWidget *w)
{ {
PangoFontDescription *font_desc; PangoAttrList *attrs;
font_desc = pango_font_description_from_string ("monospace");
gtk_widget_override_font (w, font_desc); attrs = pango_attr_list_new ();
pango_font_description_free (font_desc); pango_attr_list_insert (attrs, pango_attr_fallback_new (FALSE));
pango_attr_list_insert (attrs, pango_attr_family_new ("Monospace"));
gtk_label_set_attributes (GTK_LABEL (w), attrs);
pango_attr_list_unref (attrs);
} }
static void static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment