Commit ca7fe1cb authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

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.
parent 3c8076f3
...@@ -853,6 +853,8 @@ lookup_default_value (PropertyNode *node, ...@@ -853,6 +853,8 @@ lookup_default_value (PropertyNode *node,
{ {
if (node->pspec->value_type == GTK_TYPE_THEMING_ENGINE) if (node->pspec->value_type == GTK_TYPE_THEMING_ENGINE)
g_value_set_object (value, gtk_theming_engine_load (NULL)); 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 else
g_param_value_set_default (node->pspec, value); g_param_value_set_default (node->pspec, value);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment