[gmime] block/unblock changed event in g_mime_object_set_content_id()
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] block/unblock changed event in g_mime_object_set_content_id()
- Date: Mon, 13 Mar 2017 00:49:49 +0000 (UTC)
commit 684df5568e3d08ddf677ecd0669b843af0bf3811
Author: Jeffrey Stedfast <fejj gnome org>
Date: Sun Mar 12 16:02:50 2017 -0400
block/unblock changed event in g_mime_object_set_content_id()
gmime/gmime-object.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gmime/gmime-object.c b/gmime/gmime-object.c
index 5a1a2b4..05ace4c 100644
--- a/gmime/gmime-object.c
+++ b/gmime/gmime-object.c
@@ -867,7 +867,9 @@ g_mime_object_set_content_id (GMimeObject *object, const char *content_id)
object->content_id = g_strdup (content_id);
msgid = g_strdup_printf ("<%s>", content_id);
- g_mime_object_set_header (object, "Content-Id", msgid);
+ _g_mime_object_block_header_list_changed (object);
+ g_mime_header_list_set (object->headers, "Content-Id", msgid);
+ _g_mime_object_unblock_header_list_changed (object);
g_free (msgid);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]