[gtk+/builder-details] Changed GtkRecentFilter builder parsing to use g_string_append_len
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/builder-details] Changed GtkRecentFilter builder parsing to use g_string_append_len
- Date: Wed, 26 Jan 2011 13:03:09 +0000 (UTC)
commit 2f3d2128ead2d73c1cdc4ab9920762459bfd27d2
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Jan 26 21:53:45 2011 +0900
Changed GtkRecentFilter builder parsing to use g_string_append_len
gtk/gtkrecentfilter.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkrecentfilter.c b/gtk/gtkrecentfilter.c
index 463ce3e..9188f7b 100644
--- a/gtk/gtkrecentfilter.c
+++ b/gtk/gtkrecentfilter.c
@@ -291,14 +291,9 @@ parser_text_element (GMarkupParseContext *context,
GError **error)
{
SubParserData *parser_data = (SubParserData*)user_data;
- gchar *string;
if (parser_data->parsing)
- {
- string = g_strndup (text, text_len);
- g_string_append (parser_data->string, string);
- g_free (string);
- }
+ g_string_append_len (parser_data->string, text, text_len);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]