Fix setting child properties

This was broken in e9f182e37a
This commit is contained in:
Matthias Clasen 2013-05-03 22:29:20 -04:00
parent 97caad1fec
commit ed5ef04127

View File

@ -664,16 +664,17 @@ attributes_end_element (GMarkupParseContext *context,
/* translate the string */
if (parser_data->string->len && parser_data->translatable)
{
const gchar *translated;
gchar *translated;
const gchar *domain;
domain = gtk_builder_get_translation_domain (parser_data->builder);
translated = _gtk_builder_parser_translate (domain,
parser_data->context,
parser_data->string->str);
translated = g_strdup (_gtk_builder_parser_translate (domain,
parser_data->context,
parser_data->string->str));
g_string_set_size (parser_data->string, 0);
g_string_append (parser_data->string, translated);
g_free (translated);
}
if (parser_data->child_prop_name)