evolution-data-server r8344 - trunk/camel



Author: psankar
Date: Wed Jan  9 06:43:41 2008
New Revision: 8344
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8344&view=rev

Log:
2008-01-09  Sankar P  <psankar novell com>

	* camel-mime-part.c: (camel_mime_part_set_filename):
	Use the right API to get the mime_type. Accessing Data Wrapper's
	field directly is not advisable.

	** Fix for bug #460204




Modified:
   trunk/camel/ChangeLog
   trunk/camel/camel-mime-part.c

Modified: trunk/camel/camel-mime-part.c
==============================================================================
--- trunk/camel/camel-mime-part.c	(original)
+++ trunk/camel/camel-mime-part.c	Wed Jan  9 06:43:41 2008
@@ -447,8 +447,9 @@
 				 "Content-Disposition", str);
 	g_free(str);
 
-	camel_content_type_set_param (((CamelDataWrapper *) mime_part)->mime_type, "name", filename);
-	str = camel_content_type_format (((CamelDataWrapper *) mime_part)->mime_type);
+	camel_content_type_set_param ( (camel_data_wrapper_get_mime_type ((CamelDataWrapper *) mime_part)), "name", filename);
+
+	str = camel_content_type_format ((camel_data_wrapper_get_mime_type ((CamelDataWrapper *) mime_part)));
 	camel_medium_set_header (CAMEL_MEDIUM (mime_part), "Content-Type", str);
 	g_free (str);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]