Re: "pipe through" broken?



On 07/08/2005 12:02:37 AM, Andrew Lau wrote:
[ snip ]
Hey Peter,

Got a patch that I can apply to the 2.3.4 package or at least the name of the changed files in CVS?

Hi Andrew!

The cvs diff is attached--it should apply cleanly to 2.3.4.

Best,

Peter
Index: src/balsa-index.c
===================================================================
RCS file: /cvs/gnome/balsa/src/balsa-index.c,v
retrieving revision 1.389
retrieving revision 1.390
diff -u -r1.389 -r1.390
--- src/balsa-index.c	9 May 2005 12:32:20 -0000	1.389
+++ src/balsa-index.c	8 Jul 2005 03:27:11 -0000	1.390
@@ -49,6 +49,7 @@
 
 #include "filter-funcs.h"
 #include "misc.h"
+#include "mime-stream-shared.h"
 #include "i18n.h"
 
 /* TREE_VIEW_FIXED_HEIGHT enables hight-performance mode of GtkTreeView
@@ -2316,7 +2317,9 @@
 
         pipe = g_mime_stream_file_new(fprog);
         g_mime_stream_file_set_owner(GMIME_STREAM_FILE(pipe), FALSE);
+        libbalsa_mime_stream_shared_lock(stream);
         g_mime_stream_write_to_stream(stream, pipe);
+        libbalsa_mime_stream_shared_unlock(stream);
         g_object_unref(pipe);
         g_object_unref(stream);
         if (pclose(fprog) == -1)



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