aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-12-18 01:24:22 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-12-18 01:24:22 +0800
commit2fdce9196969f13b32d7918401a7dd7dc01e582b (patch)
treef4120d7e731a1f25f24845246460545ceb3e855c
parent0ef40d19c28524082189d8b768db3822072b8dbc (diff)
downloadgsoc2013-evolution-2fdce9196969f13b32d7918401a7dd7dc01e582b.tar.gz
gsoc2013-evolution-2fdce9196969f13b32d7918401a7dd7dc01e582b.tar.zst
gsoc2013-evolution-2fdce9196969f13b32d7918401a7dd7dc01e582b.zip
Use gstdio wrappers.
2005-12-17 Tor Lillqvist <tml@novell.com> * filter-file.c: Use gstdio wrappers. svn path=/trunk/; revision=30833
-rw-r--r--filter/ChangeLog4
-rw-r--r--filter/filter-file.c14
2 files changed, 13 insertions, 5 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 5b1babb27a..e9e2341a03 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-17 Tor Lillqvist <tml@novell.com>
+
+ * filter-file.c: Use gstdio wrappers.
+
2005-08-23 Not Zed <NotZed@Ximian.com>
* filter-rule.c (get_widget): cast.
diff --git a/filter/filter-file.c b/filter/filter-file.c
index f4a6ae7ec1..9934d92b54 100644
--- a/filter/filter-file.c
+++ b/filter/filter-file.c
@@ -21,22 +21,26 @@
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <glib.h>
+#include <glib/gstdio.h>
+
#include <gtk/gtk.h>
+
#include <libgnome/gnome-i18n.h>
#include <libgnomeui/gnome-file-entry.h>
-#include "filter-file.h"
-#include "libedataserver/e-sexp.h"
+#include <libedataserver/e-sexp.h>
+
#include "e-util/e-error.h"
+#include "filter-file.h"
+
#define d(x)
static gboolean validate (FilterElement *fe);
@@ -169,7 +173,7 @@ validate (FilterElement *fe)
/* FIXME: do more to validate command-lines? */
if (strcmp (file->type, "file") == 0) {
- if (stat (file->path, &st) == -1 || !S_ISREG (st.st_mode)) {
+ if (g_stat (file->path, &st) == -1 || !S_ISREG (st.st_mode)) {
/* FIXME: FilterElement should probably have a
GtkWidget member pointing to the value gotten with
::get_widget() so that we can get the parent window