Inspector: Use the new monospace support

This commit is contained in:
Matthias Clasen
2014-10-07 00:42:21 -04:00
parent a3dfffa8b8
commit 0c02bc4239
3 changed files with 2 additions and 22 deletions

View File

@ -206,20 +206,6 @@ save_clicked (GtkToolButton *button,
gtk_widget_show (dialog);
}
static void
apply_system_font (GtkInspectorCssEditor *ce)
{
GSettings *s = g_settings_new ("org.gnome.desktop.interface");
gchar *font_name = g_settings_get_string (s, "monospace-font-name");
PangoFontDescription *font_desc = pango_font_description_from_string (font_name);
gtk_widget_override_font (ce->priv->view, font_desc);
pango_font_description_free (font_desc);
g_free (font_name);
g_object_unref (s);
}
static void
update_style (GtkInspectorCssEditor *ce)
{
@ -373,7 +359,6 @@ constructed (GObject *object)
GtkInspectorCssEditor *ce = GTK_INSPECTOR_CSS_EDITOR (object);
create_provider (ce);
apply_system_font (ce);
set_initial_text (ce);
}