Presumably 'sans-serif' font is really 'sans'
We want to avoid an empty font combo box.
This commit is contained in:
parent
641c37a8de
commit
28c5919b0d
1 changed files with 3 additions and 0 deletions
|
@ -586,6 +586,9 @@ katze_property_proxy (gpointer object,
|
||||||
pango_context_list_families (context, &families, &n_families);
|
pango_context_list_families (context, &families, &n_families);
|
||||||
if (!string)
|
if (!string)
|
||||||
string = g_strdup (G_PARAM_SPEC_STRING (pspec)->default_value);
|
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)
|
if (string)
|
||||||
{
|
{
|
||||||
gint j = 0;
|
gint j = 0;
|
||||||
|
|
Loading…
Reference in a new issue