diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-05-03 22:29:20 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-05-03 22:29:20 -0400 |
commit | ed5ef04127c5663d03ec81759fdee6d1a3a8a8af (patch) | |
tree | 6ad98060dfd31347367c51b4571f62b0647609c0 /gtk | |
parent | 97caad1fece17320db481ebf1933ad306c68fe3f (diff) | |
download | gtk+-ed5ef04127c5663d03ec81759fdee6d1a3a8a8af.tar.gz |
Fix setting child properties
This was broken in e9f182e37a7f6e2dc339054841a3c9f930f573ed
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkcontainer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 4a642df2af..2d7ab23d34 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -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) |