Presumably 'sans-serif' font is really 'sans'

We want to avoid an empty font combo box.
This commit is contained in:
Christian Dywan 2009-11-21 20:21:26 +01:00
parent 641c37a8de
commit 28c5919b0d

View file

@ -586,6 +586,9 @@ katze_property_proxy (gpointer object,
pango_context_list_families (context, &families, &n_families);
if (!string)
string = g_strdup (G_PARAM_SPEC_STRING (pspec)->default_value);
/* 'sans' and 'sans-serif' are presumably the same */
if (!g_strcmp0 (string, "sans-serif"))
katze_assign (string, g_strdup ("sans"));
if (string)
{
gint j = 0;