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

@ -1637,7 +1637,7 @@ marks_start_element (GMarkupParseContext *context,
msg_context = values[i];
else if (strcmp (names[i], "value") == 0)
{
GValue gvalue = { 0, };
GValue gvalue = G_VALUE_INIT;
if (!gtk_builder_value_from_string_type (parser_data->builder, G_TYPE_DOUBLE, values[i], &gvalue, error))
return;
@ -1647,7 +1647,7 @@ marks_start_element (GMarkupParseContext *context,
}
else if (strcmp (names[i], "position") == 0)
{
GValue gvalue = { 0, };
GValue gvalue = G_VALUE_INIT;
if (!gtk_builder_value_from_string_type (parser_data->builder, GTK_TYPE_POSITION_TYPE, values[i], &gvalue, error))
return;