From b749cf077233687b34a5ae0aed1ee33d23b76471 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 8 Jul 2002 20:30:39 +0000 Subject: Make the sound type for (play-sound ) a "file" type rather than "string" 2002-07-08 Jeffrey Stedfast * 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 --- filter/filter-file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'filter/filter-file.c') 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; -- cgit v1.2.3