GtkStyleProperties: Assign default value for the font property

This fixes a failure when running make test, where style queries
happened before there was even an screen.
This commit is contained in:
Carlos Garnacho 2010-12-20 12:26:11 +01:00
parent 3c8076f3dc
commit ca7fe1cb73

View File

@ -853,6 +853,8 @@ lookup_default_value (PropertyNode *node,
{
if (node->pspec->value_type == GTK_TYPE_THEMING_ENGINE)
g_value_set_object (value, gtk_theming_engine_load (NULL));
else if (node->pspec->value_type == PANGO_TYPE_FONT_DESCRIPTION)
g_value_take_boxed (value, pango_font_description_from_string ("Sans 10"));
else
g_param_value_set_default (node->pspec, value);
}