Use g_strdup on the translated string instead of g_strndup() + the length

2007-08-07  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkbuilderparser.c (text): Use g_strdup on the translated
    string instead of g_strndup() + the length of the untranslated
    string. (#461945, Claude Paroz)


svn path=/trunk/; revision=18588
This commit is contained in:
Johan Dahlin
2007-08-07 21:04:23 +00:00
committed by Johan Dahlin
parent ce1d7e3a4a
commit f09b3248af
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-08-07 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkbuilderparser.c (text): Use g_strdup on the translated
string instead of g_strndup() + the length of the untranslated
string. (#461945, Claude Paroz)
2007-08-07 Kristian Rietveld <kris@imendio.com> 2007-08-07 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltips.c (gtk_tooltips_init), * gtk/gtktooltips.c (gtk_tooltips_init),

View File

@ -915,7 +915,7 @@ text (GMarkupParseContext *context,
else else
text = dgettext (data->domain, text); text = dgettext (data->domain, text);
} }
prop_info->data = g_strndup (text, text_len); prop_info->data = g_strdup (text);
} }
} }