aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-element.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-element.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-element.c')
-rw-r--r--filter/filter-element.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/filter-element.c b/filter/filter-element.c
index db50013a39..cbdab0409f 100644
--- a/filter/filter-element.c
+++ b/filter/filter-element.c
@@ -277,6 +277,8 @@ filter_element_new_type_name (const char *type)
return (FilterElement *)filter_source_new ();
} else if (!strcmp (type, "command")) {
return (FilterElement *) filter_file_new_type_name (type);
+ } else if (!strcmp (type, "file")) {
+ return (FilterElement *) filter_file_new_type_name (type);
} else if (!strcmp (type, "label")) {
return (FilterElement *) filter_label_new ();
} else {