aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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