From 28c5919b0da4ef6194a0276bd80102a3721b7baf Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 21 Nov 2009 20:21:26 +0100 Subject: [PATCH] Presumably 'sans-serif' font is really 'sans' We want to avoid an empty font combo box. --- katze/katze-utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/katze/katze-utils.c b/katze/katze-utils.c index 5c8dc035..5f600427 100644 --- a/katze/katze-utils.c +++ b/katze/katze-utils.c @@ -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; -- 2.39.5