** Fix for bug #534080
authorMilan Crha <mcrha@redhat.com>
Fri, 13 Jun 2008 11:57:16 +0000 (11:57 +0000)
committerMilan Crha <mcrha@src.gnome.org>
Fri, 13 Jun 2008 11:57:16 +0000 (11:57 +0000)
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.

svn path=/trunk/; revision=8980

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

index a8ccf96..b761038 100644 (file)
@@ -1,3 +1,10 @@
+2008-06-13  Milan Crha  <mcrha@redhat.com>
+
+       ** Fix for bug #534080
+
+       * backends/file/e-cal-backend-file.c: (save_file_when_idle):
+       Use g_output_stream_write_all instead of g_output_stream_write.
+
 2008-06-13  Tor Lillqvist  <tml@novell.com>
 
        * backends/google/Makefile.am (libecalbackendgoogle_la_LIBADD)
index a4059f5..fef052d 100644 (file)
@@ -173,7 +173,7 @@ save_file_when_idle (gpointer user_data)
        }
 
        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) {
index ee89746..7c6de63 100644 (file)
@@ -1,3 +1,10 @@
+2008-06-13  Milan Crha  <mcrha@redhat.com>
+
+       ** Fix for bug #534080
+
+       * camel-stream-vfs.c: (stream_write):
+       Use g_output_stream_write_all instead of g_output_stream_write.
+
 2008-06-13  Tor Lillqvist  <tml@novell.com>
 
        * camel-msgport.c: Make it compile on Win32.
index a092db1..bfd7dba 100644 (file)
@@ -217,7 +217,7 @@ stream_write (CamelStream *stream, const char *buffer, size_t n)
 
        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);