diff options
author | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-05-14 05:36:14 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-05-14 05:36:14 +0800 |
commit | 1126db678eea6b5fcde9376b77e5b35694467453 (patch) | |
tree | 7acedc65956bdb71ac4f429dc0ca1fb4786e83fd /camel/camel-mime-part.c | |
parent | 483804aac86969591d7aefa186f52ca167da0381 (diff) | |
download | gsoc2013-evolution-1126db678eea6b5fcde9376b77e5b35694467453.tar.gz gsoc2013-evolution-1126db678eea6b5fcde9376b77e5b35694467453.tar.zst gsoc2013-evolution-1126db678eea6b5fcde9376b77e5b35694467453.zip |
create recipients hash table (_remove_recipient): (_add_recipient):
* camel/camel-mime-message.c (camel_mime_message_init):
create recipients hash table
(_remove_recipient):
(_add_recipient):
(_get_recipients): new funcs.
Internal Recipients data structure is
a bit complicated though.
* camel/camel-mime-part.c (camel_mime_part_init):
create headers hash table
svn path=/trunk/; revision=924
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r-- | camel/camel-mime-part.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 35fd0279ed..a79ef7efcc 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -27,6 +27,7 @@ #include "camel-mime-part.h" #include <stdio.h> #include "gmime-content-field.h" +#include "gstring-util.h" @@ -94,8 +95,14 @@ camel_mime_part_class_init (CamelMimePartClass *camel_mime_part_class) camel_data_wrapper_class->write_to_file = _write_to_file; } +static void +camel_mime_part_init (gpointer object, gpointer klass) +{ + CamelMimePart *camel_mime_part = CAMEL_MIME_PART (object); + camel_mime_part->headers = g_hash_table_new(g_string_hash, g_string_equal_for_hash); +} @@ -112,7 +119,7 @@ camel_mime_part_get_type (void) sizeof (CamelMimePart), sizeof (CamelMimePartClass), (GtkClassInitFunc) camel_mime_part_class_init, - (GtkObjectInitFunc) NULL, + (GtkObjectInitFunc) camel_mime_part_init, /* reserved_1 */ NULL, /* reserved_2 */ NULL, (GtkClassInitFunc) NULL, |