Make GtkBorder style properties have a non-NULL default

https://bugzilla.gnome.org/show_bug.cgi?id=639625
This commit is contained in:
Matthias Clasen 2011-01-19 20:42:50 -05:00
parent 2f7245699b
commit 6869ff26f3

View File

@ -869,6 +869,10 @@ lookup_default_value (PropertyNode *node,
gdk_rgba_parse (&color, "pink");
g_value_set_boxed (value, &color);
}
else if (node->pspec->value_type == GTK_TYPE_BORDER)
{
g_value_take_boxed (value, gtk_border_new ());
}
else
g_param_value_set_default (node->pspec, value);
}