From: Christian Dywan Date: Sat, 21 Nov 2009 19:21:26 +0000 (+0100) Subject: Presumably 'sans-serif' font is really 'sans' X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28c5919b0da4ef6194a0276bd80102a3721b7baf;p=midori Presumably 'sans-serif' font is really 'sans' We want to avoid an empty font combo box. --- 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;