evolution-data-server r8345 - branches/gnome-2-20/camel



Author: psankar
Date: Wed Jan  9 06:56:29 2008
New Revision: 8345
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8345&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:
   branches/gnome-2-20/camel/ChangeLog
   branches/gnome-2-20/camel/camel-mime-part.c

Modified: branches/gnome-2-20/camel/camel-mime-part.c
==============================================================================
--- branches/gnome-2-20/camel/camel-mime-part.c	(original)
+++ branches/gnome-2-20/camel/camel-mime-part.c	Wed Jan  9 06:56:29 2008
@@ -446,9 +446,10 @@
 	camel_medium_set_header (CAMEL_MEDIUM (mime_part),
 				 "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]