mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 01:40:10 +00:00
Changed GtkComboBoxText <items> builder parser to use g_string_append_len().
This commit is contained in:
parent
2081ade640
commit
9487ce77c4
@ -206,14 +206,9 @@ item_text (GMarkupParseContext *context,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
ItemParserData *data = (ItemParserData*)user_data;
|
ItemParserData *data = (ItemParserData*)user_data;
|
||||||
gchar *string;
|
|
||||||
|
|
||||||
if (!data->is_text)
|
if (data->is_text)
|
||||||
return;
|
g_string_append_len (data->string, text, text_len);
|
||||||
|
|
||||||
string = g_strndup (text, text_len);
|
|
||||||
g_string_append (data->string, string);
|
|
||||||
g_free (string);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user