aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-data-wrapper.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>2000-02-10 05:09:31 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-02-10 05:09:31 +0800
commit2088dd34013562ec6c051d2b7524e9167bd89a57 (patch)
treef434005bd7f61345080289d8079f87026f9d78b8 /camel/camel-data-wrapper.c
parent3bd58106efb22b78e6fbabe9307880338ae92746 (diff)
downloadgsoc2013-evolution-2088dd34013562ec6c051d2b7524e9167bd89a57.tar.gz
gsoc2013-evolution-2088dd34013562ec6c051d2b7524e9167bd89a57.tar.zst
gsoc2013-evolution-2088dd34013562ec6c051d2b7524e9167bd89a57.zip
set the mime type to "mime/message". --- THIS IS NOT THE CONTENT TYPE ---
2000-02-09 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-message.c (camel_mime_message_init): set the mime type to "mime/message". --- THIS IS NOT THE CONTENT TYPE --- * camel/camel-mime-body-part.c (camel_mime_body_part_init): set the mime type to "body-part". --- THIS IS NOT THE CONTENT TYPE --- * camel/camel-data-wrapper.c (camel_data_wrapper_set_mime_type): mime_type is const. (_set_input_stream): really set the input stream (_set_output_stream): really set the output stream various other typo fixes. * tests/ui-tests/message-browser.c: various typo fixes in the ctree construction. svn path=/trunk/; revision=1712
Diffstat (limited to 'camel/camel-data-wrapper.c')
-rw-r--r--camel/camel-data-wrapper.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index 4b9683b2d1..0489f184c2 100644
--- a/camel/camel-data-wrapper.c
+++ b/camel/camel-data-wrapper.c
@@ -39,11 +39,11 @@ static GtkObjectClass *parent_class=NULL;
static void _set_input_stream (CamelDataWrapper *data_wrapper, CamelStream *stream);
static CamelStream *_get_input_stream (CamelDataWrapper *data_wrapper);
static void _set_output_stream (CamelDataWrapper *data_wrapper, CamelStream *stream);
-CamelStream *_get_output_stream (CamelDataWrapper *data_wrapper);
+static CamelStream *_get_output_stream (CamelDataWrapper *data_wrapper);
static void _construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream);
static void _write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream);
-static void _set_mime_type (CamelDataWrapper *data_wrapper, gchar *mime_type);
+static void _set_mime_type (CamelDataWrapper *data_wrapper, const gchar *mime_type);
static gchar *_get_mime_type (CamelDataWrapper *data_wrapper);
static GMimeContentField *_get_mime_type_field (CamelDataWrapper *data_wrapper);
static void _set_mime_type_field (CamelDataWrapper *data_wrapper, GMimeContentField *mime_type);
@@ -130,15 +130,15 @@ _finalize (GtkObject *object)
-void
+static void
_set_input_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
{
g_assert (data_wrapper);
- data_wrapper->input_stream;
+ data_wrapper->input_stream = stream;
}
-CamelStream *
+static CamelStream *
_get_input_stream (CamelDataWrapper *data_wrapper)
{
g_assert (data_wrapper);
@@ -146,15 +146,15 @@ _get_input_stream (CamelDataWrapper *data_wrapper)
}
-void
+static void
_set_output_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
{
g_assert (data_wrapper);
- data_wrapper->output_stream;
+ data_wrapper->output_stream = stream;
}
-CamelStream *
+static CamelStream *
_get_output_stream (CamelDataWrapper *data_wrapper)
{
g_assert (data_wrapper);
@@ -228,7 +228,7 @@ camel_data_wrapper_construct_from_stream (CamelDataWrapper *data_wrapper, CamelS
static void
-_set_mime_type (CamelDataWrapper *data_wrapper, gchar *mime_type)
+_set_mime_type (CamelDataWrapper *data_wrapper, const gchar *mime_type)
{
CAMEL_LOG_FULL_DEBUG ( "CamelDataWrapper::set_mime_type Entering\n");
g_assert (mime_type);
@@ -237,7 +237,7 @@ _set_mime_type (CamelDataWrapper *data_wrapper, gchar *mime_type)
}
void
-camel_data_wrapper_set_mime_type (CamelDataWrapper *data_wrapper, gchar *mime_type)
+camel_data_wrapper_set_mime_type (CamelDataWrapper *data_wrapper, const gchar *mime_type)
{
CDW_CLASS(data_wrapper)->set_mime_type (data_wrapper, mime_type);
}
@@ -295,5 +295,5 @@ _get_stream (CamelDataWrapper *data_wrapper)
CamelStream *
camel_data_wrapper_get_stream (CamelDataWrapper *data_wrapper)
{
- CDW_CLASS(data_wrapper)->get_stream (data_wrapper);
+ return CDW_CLASS(data_wrapper)->get_stream (data_wrapper);
}