From 0ef40d19c28524082189d8b768db3822072b8dbc Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 17 Dec 2005 17:22:49 +0000 Subject: Include instead of attempting to hand-pick individual GTK 2005-12-17 Tor Lillqvist * e-msg-composer-attachment.c: Include instead of attempting to hand-pick individual GTK headers. Use gstdio wrappers. Use GDir instead of dirent. Use g_mkstemp() instead of mkstemp(). Construct xml file names at run-time. svn path=/trunk/; revision=30832 --- composer/ChangeLog | 15 +++++++++------ composer/e-msg-composer-attachment.c | 15 +++++++-------- 2 files changed, 16 insertions(+), 14 deletions(-) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index 2c785512ea..6cf0742625 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,11 +1,14 @@ 2005-12-17 Tor Lillqvist - * e-msg-composer.c: Include instead of attempting to - hand-pick individual GTK headers. Use gstdio wrappers. Use GDir - instead of dirent. Use g_mkstemp() instead of mkstemp(). Construct - xml file names at run-time. - (autosave_manager_unregister): Close file before unlinking so we - don't leave stray autosave files laying around on Win32. + * e-msg-composer.c + * e-msg-composer-attachment.c: Include instead of + attempting to hand-pick individual GTK headers. Use gstdio + wrappers. Use GDir instead of dirent. Use g_mkstemp() instead of + mkstemp(). Construct xml file names at run-time. + + * e-msg-composer.c (autosave_manager_unregister): Close file + before unlinking so we don't leave stray autosave files laying + around on Win32. 2005-11-23 Johnny Jacob diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c index c7d7fabde4..a8b6b0e726 100644 --- a/composer/e-msg-composer-attachment.c +++ b/composer/e-msg-composer-attachment.c @@ -28,20 +28,19 @@ attachment. Also, this contains the code to let users edit the attachment manually. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include #include -#include -#include -#include -#include +#include +#include + +#include #include #include +#include #include "e-util/e-mktemp.h" #include "e-util/e-util-private.h" @@ -183,7 +182,7 @@ e_msg_composer_attachment_new (const char *file_name, g_return_val_if_fail (file_name != NULL, NULL); - if (stat (file_name, &statbuf) < 0) { + if (g_stat (file_name, &statbuf) < 0) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot attach file %s: %s"), file_name, g_strerror (errno)); @@ -293,7 +292,7 @@ e_msg_composer_attachment_build_remote_file (const char *file_name, g_return_if_fail (file_name != NULL); - if (stat (file_name, &statbuf) < 0) { + if (g_stat (file_name, &statbuf) < 0) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot attach file %s: %s"), file_name, g_strerror (errno)); -- cgit