evolution-data-server r8980 - in trunk: calendar calendar/backends/file camel



Author: mcrha
Date: Fri Jun 13 11:57:16 2008
New Revision: 8980
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8980&view=rev

Log:
2008-06-13  Milan Crha  <mcrha redhat com>

	** Fix for bug #534080

	* camel/camel-stream-vfs.c: (stream_write):
	Use g_output_stream_write_all instead of g_output_stream_write.

	* calendar/backends/file/e-cal-backend-file.c: (save_file_when_idle):
	Use g_output_stream_write_all instead of g_output_stream_write.



Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/backends/file/e-cal-backend-file.c
   trunk/camel/ChangeLog
   trunk/camel/camel-stream-vfs.c

Modified: trunk/calendar/backends/file/e-cal-backend-file.c
==============================================================================
--- trunk/calendar/backends/file/e-cal-backend-file.c	(original)
+++ trunk/calendar/backends/file/e-cal-backend-file.c	Fri Jun 13 11:57:16 2008
@@ -173,7 +173,7 @@
 	}
 
 	buf = icalcomponent_as_ical_string (priv->icalcomp);
-	g_output_stream_write (G_OUTPUT_STREAM (stream), buf, strlen (buf) * sizeof (char), NULL, &e);
+	g_output_stream_write_all (G_OUTPUT_STREAM (stream), buf, strlen (buf) * sizeof (char), NULL, NULL, &e);
 	g_free (buf);
 
 	if (e) {

Modified: trunk/camel/camel-stream-vfs.c
==============================================================================
--- trunk/camel/camel-stream-vfs.c	(original)
+++ trunk/camel/camel-stream-vfs.c	Fri Jun 13 11:57:16 2008
@@ -217,7 +217,7 @@
 
 	g_return_val_if_fail (G_IS_OUTPUT_STREAM (stream_vfs->stream), 0);
 
-	nwritten = g_output_stream_write (G_OUTPUT_STREAM (stream_vfs->stream), buffer, n, NULL, &error);
+	nwritten = g_output_stream_write_all (G_OUTPUT_STREAM (stream_vfs->stream), buffer, n, NULL, NULL, &error);
 
 	if (error) {
 		g_warning ("%s", error->message);



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