diff options
author | Tor Lillqvist <tml@novell.com> | 2005-12-18 01:24:22 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-12-18 01:24:22 +0800 |
commit | 2fdce9196969f13b32d7918401a7dd7dc01e582b (patch) | |
tree | f4120d7e731a1f25f24845246460545ceb3e855c /filter/filter-file.c | |
parent | 0ef40d19c28524082189d8b768db3822072b8dbc (diff) | |
download | gsoc2013-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
Diffstat (limited to 'filter/filter-file.c')
-rw-r--r-- | filter/filter-file.c | 14 |
1 files changed, 9 insertions, 5 deletions
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 |