aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-07-08 03:18:57 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-07-08 03:18:57 +0800
commit8bbe0f34af2bd9906012106d8ee27187f05b6a15 (patch)
tree5cfa51a91191b20ef2f1f765df6f99611041cae5 /camel/camel-mime-part.c
parent26709642fa1a39108690aa5295e1726a0861c58c (diff)
downloadgsoc2013-evolution-8bbe0f34af2bd9906012106d8ee27187f05b6a15.tar
gsoc2013-evolution-8bbe0f34af2bd9906012106d8ee27187f05b6a15.tar.gz
gsoc2013-evolution-8bbe0f34af2bd9906012106d8ee27187f05b6a15.tar.bz2
gsoc2013-evolution-8bbe0f34af2bd9906012106d8ee27187f05b6a15.tar.lz
gsoc2013-evolution-8bbe0f34af2bd9906012106d8ee27187f05b6a15.tar.xz
gsoc2013-evolution-8bbe0f34af2bd9906012106d8ee27187f05b6a15.tar.zst
gsoc2013-evolution-8bbe0f34af2bd9906012106d8ee27187f05b6a15.zip
Updated for string-utils namespace changes.
2003-07-07 Jeffrey Stedfast <fejj@ximian.com> * camel-session.c (camel_session_init): Updated for string-utils namespace changes. * camel-provider.c: Updated for string-utils namespace changes. * camel-mime-part.c (init_header_name_table): Updated for string-utils namespace changes. * camel-mime-message.c (camel_mime_message_class_init): Updated for string-utils namespace changes. (camel_mime_message_init): Same. * camel-mime-filter-enriched.c (camel_mime_filter_enriched_class_init): Updated for string-utils namespace changes. * camel-folder-summary.c (camel_folder_summary_init): Updated for string-utils namespace changes. * camel-string-utils.[c,h]: Renamed from string-utils.[c,h] and also namespaced all functions. svn path=/trunk/; revision=21751
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index f049eb92bb..343248715b 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -44,7 +44,7 @@
#include "camel-mime-utils.h"
#include "camel-exception.h"
#include "camel-charset-map.h"
-#include "string-utils.h"
+#include "camel-string-utils.h"
#define d(x) /*(printf("%s(%d): ", __FILE__, __LINE__),(x))*/
@@ -103,7 +103,7 @@ static int write_raw(CamelStream *stream, struct _header_raw *h);
static void
init_header_name_table()
{
- header_name_table = g_hash_table_new (g_strcase_hash, g_strcase_equal);
+ header_name_table = g_hash_table_new (camel_strcase_hash, camel_strcase_equal);
g_hash_table_insert (header_name_table, "Content-Description", (gpointer)HEADER_DESCRIPTION);
g_hash_table_insert (header_name_table, "Content-Disposition", (gpointer)HEADER_DISPOSITION);
g_hash_table_insert (header_name_table, "Content-id", (gpointer)HEADER_CONTENT_ID);
@@ -112,7 +112,7 @@ init_header_name_table()
g_hash_table_insert (header_name_table, "Content-Location", (gpointer)HEADER_CONTENT_LOCATION);
g_hash_table_insert (header_name_table, "Content-Type", (gpointer)HEADER_CONTENT_TYPE);
- header_formatted_table = g_hash_table_new(g_strcase_hash, g_strcase_equal);
+ header_formatted_table = g_hash_table_new (camel_strcase_hash, camel_strcase_equal);
g_hash_table_insert(header_formatted_table, "Content-Type", write_raw);
g_hash_table_insert(header_formatted_table, "Content-Disposition", write_raw);
g_hash_table_insert(header_formatted_table, "To", write_raw);
@@ -174,7 +174,7 @@ camel_mime_part_finalize (CamelObject *object)
g_free (mime_part->content_id);
g_free (mime_part->content_MD5);
g_free (mime_part->content_location);
- string_list_free (mime_part->content_languages);
+ camel_string_list_free (mime_part->content_languages);
header_disposition_unref(mime_part->disposition);
if (mime_part->content_type)
@@ -499,7 +499,9 @@ camel_mime_part_get_encoding (CamelMimePart *mime_part)
void
camel_mime_part_set_content_languages (CamelMimePart *mime_part, GList *content_languages)
{
- if (mime_part->content_languages) string_list_free (mime_part->content_languages);
+ if (mime_part->content_languages)
+ camel_string_list_free (mime_part->content_languages);
+
mime_part->content_languages = content_languages;
/* FIXME: translate to a header and set it */