aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-file.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-25 16:49:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-25 16:49:56 +0800
commit00a8f5e2ec693222e02e96c700c235a81eeb4ce5 (patch)
treed15ccbf5f6e04bfe4e85fff036cd69a52e2e3038 /filter/filter-file.c
parent6ea2a4da8b06dd138bc815b242d6670d7c003223 (diff)
downloadgsoc2013-evolution-00a8f5e2ec693222e02e96c700c235a81eeb4ce5.tar
gsoc2013-evolution-00a8f5e2ec693222e02e96c700c235a81eeb4ce5.tar.gz
gsoc2013-evolution-00a8f5e2ec693222e02e96c700c235a81eeb4ce5.tar.bz2
gsoc2013-evolution-00a8f5e2ec693222e02e96c700c235a81eeb4ce5.tar.lz
gsoc2013-evolution-00a8f5e2ec693222e02e96c700c235a81eeb4ce5.tar.xz
gsoc2013-evolution-00a8f5e2ec693222e02e96c700c235a81eeb4ce5.tar.zst
gsoc2013-evolution-00a8f5e2ec693222e02e96c700c235a81eeb4ce5.zip
Use GtkType (I only changed this one because I turned on debugging for a
2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * filter-int.[c,h]: Use GtkType (I only changed this one because I turned on debugging for a bit). * filter-file.c (validate): Fix the strcmp logic a bit, I had it the exact opposite of what I really wanted. Oops :-) svn path=/trunk/; revision=17586
Diffstat (limited to 'filter/filter-file.c')
-rw-r--r--filter/filter-file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/filter/filter-file.c b/filter/filter-file.c
index 14f8e04d5b..4b4eb69904 100644
--- a/filter/filter-file.c
+++ b/filter/filter-file.c
@@ -41,7 +41,7 @@
#include "filter-file.h"
#include "e-util/e-sexp.h"
-#define d(x)
+#define d(x)
static gboolean validate (FilterElement *fe);
static int file_eq(FilterElement *fe, FilterElement *cm);
@@ -183,7 +183,7 @@ validate (FilterElement *fe)
/* FIXME: do more to validate command-lines? */
- if (strcmp (file->type, "file") != 0) {
+ if (strcmp (file->type, "file") == 0) {
if (stat (file->path, &st) == -1 || !S_ISREG (st.st_mode)) {
char *errmsg;
@@ -195,7 +195,7 @@ validate (FilterElement *fe)
gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
return FALSE;
}
- } else if (strcmp (file->type, "command") != 0) {
+ } else if (strcmp (file->type, "command") == 0) {
/* only requirements so far is that the command can't
be an empty string */
return file->path[0] != '\0';
@@ -270,6 +270,7 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
str = xmlNodeGetContent (n);
if (str) {
+
decstr = e_utf8_xml1_decode (str);
xmlFree (str);
} else