aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-file.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-09 04:30:39 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-09 04:30:39 +0800
commitb749cf077233687b34a5ae0aed1ee33d23b76471 (patch)
tree10a22b8ca8086da27c989c9a94776ce04003ac55 /filter/filter-file.c
parent85fd85a496325ed0643bb3c70d79d132069808d4 (diff)
downloadgsoc2013-evolution-b749cf077233687b34a5ae0aed1ee33d23b76471.tar
gsoc2013-evolution-b749cf077233687b34a5ae0aed1ee33d23b76471.tar.gz
gsoc2013-evolution-b749cf077233687b34a5ae0aed1ee33d23b76471.tar.bz2
gsoc2013-evolution-b749cf077233687b34a5ae0aed1ee33d23b76471.tar.lz
gsoc2013-evolution-b749cf077233687b34a5ae0aed1ee33d23b76471.tar.xz
gsoc2013-evolution-b749cf077233687b34a5ae0aed1ee33d23b76471.tar.zst
gsoc2013-evolution-b749cf077233687b34a5ae0aed1ee33d23b76471.zip
Make the sound type for (play-sound ) a "file" type rather than "string"
2002-07-08 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Make the sound type for (play-sound ) a "file" type rather than "string" since users will want to use a filesel to select it most likely. Fixes bug #26921. * filter-file.c (validate): If the type is "file" check that it is a valid file, otheriwse if it is a command-line just ignore it for now. * filter-element.c (filter_element_new_type_name): A filter type of "file" should also use the filter-file object. svn path=/trunk/; revision=17385
Diffstat (limited to 'filter/filter-file.c')
-rw-r--r--filter/filter-file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/filter-file.c b/filter/filter-file.c
index 87a6328ec0..7a0d1468e6 100644
--- a/filter/filter-file.c
+++ b/filter/filter-file.c
@@ -179,7 +179,9 @@ validate (FilterElement *fe)
return FALSE;
}
- if (strcmp (file->type, "command") != 0) {
+ /* FIXME: validate command-lines? */
+
+ if (strcmp (file->type, "file") != 0) {
if (stat (file->path, &st) == -1 || !S_ISREG (st.st_mode)) {
char *errmsg;