aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-threads.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-08-16 03:35:59 +0800
committerPeter Williams <peterw@src.gnome.org>2000-08-16 03:35:59 +0800
commit533f3d74070d1865ea2f7a753f9e38114c20fbb0 (patch)
tree10bd486a04248f06f243b9b54afeb343840489ab /mail/mail-threads.c
parente3b786b5cf25c44e31d21019e7805b7674a33967 (diff)
downloadgsoc2013-evolution-533f3d74070d1865ea2f7a753f9e38114c20fbb0.tar
gsoc2013-evolution-533f3d74070d1865ea2f7a753f9e38114c20fbb0.tar.gz
gsoc2013-evolution-533f3d74070d1865ea2f7a753f9e38114c20fbb0.tar.bz2
gsoc2013-evolution-533f3d74070d1865ea2f7a753f9e38114c20fbb0.tar.lz
gsoc2013-evolution-533f3d74070d1865ea2f7a753f9e38114c20fbb0.tar.xz
gsoc2013-evolution-533f3d74070d1865ea2f7a753f9e38114c20fbb0.tar.zst
gsoc2013-evolution-533f3d74070d1865ea2f7a753f9e38114c20fbb0.zip
Close the pipes when finished; add i18n
svn path=/trunk/; revision=4846
Diffstat (limited to 'mail/mail-threads.c')
-rw-r--r--mail/mail-threads.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/mail-threads.c b/mail/mail-threads.c
index 5d1b56975c..cf3528dfb1 100644
--- a/mail/mail-threads.c
+++ b/mail/mail-threads.c
@@ -271,7 +271,7 @@ mail_operation_queue (const mail_operation_spec * spec, gpointer input,
msg =
g_strdup_printf
- ("Error while preparing to %s:\n" "%s",
+ (_("Error while preparing to %s:\n" "%s"),
clur->infinitive,
camel_exception_get_description (clur->ex));
err_dialog = gnome_error_dialog (msg);
@@ -504,6 +504,9 @@ mail_operations_terminate (void)
clur.spec = NULL;
write (DISPATCH_WRITER, &clur, sizeof (closure_t));
+
+ close (DISPATCH_WRITER);
+ close (MAIN_READER);
}
void
@@ -616,7 +619,7 @@ dispatch (void *unused)
clur->infinitive,
camel_exception_get_description (clur->
ex));
- mail_op_error ("Error while `%s':\n" "%s",
+ mail_op_error (_("Error while `%s':\n%s"),
clur->gerund,
camel_exception_get_description (clur->
ex));
@@ -632,6 +635,9 @@ dispatch (void *unused)
block_wait (&finish_block);
}
+ close (DISPATCH_READER);
+ close (MAIN_WRITER);
+
#ifdef G_THREADS_IMPL_POSIX
pthread_exit (0);
#elif defined( G_THREADS_IMPL_SOLARIS )