Use G_VALUE_INIT

Instead of an explicit { 0, } when declaring the variable.
This commit is contained in:
Javier Jardón
2011-09-30 16:31:04 +01:00
parent 616afadd78
commit 0853ce3077
30 changed files with 73 additions and 73 deletions

View File

@ -584,7 +584,7 @@ gtk_style_properties_set_valist (GtkStyleProperties *props,
{
const GtkStyleProperty *node;
gchar *error = NULL;
GValue val = { 0 };
GValue val = G_VALUE_INIT;
node = _gtk_style_property_lookup (property_name);
@ -756,7 +756,7 @@ gtk_style_properties_get_valist (GtkStyleProperties *props,
}
else if (_gtk_style_property_is_shorthand (node))
{
GValue packed = { 0 };
GValue packed = G_VALUE_INIT;
g_value_init (&packed, node->pspec->value_type);
_gtk_style_property_pack (node, props, state, &packed);
@ -765,7 +765,7 @@ gtk_style_properties_get_valist (GtkStyleProperties *props,
}
else
{
GValue default_value = { 0 };
GValue default_value = G_VALUE_INIT;
g_value_init (&default_value, node->pspec->value_type);
_gtk_style_property_default_value (node, props, state, &default_value);