aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-input.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-07-31 23:03:23 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-07-31 23:03:23 +0800
commit9ddabfee03542411d02851a1b1f144707ce32b82 (patch)
tree60401204c8fb321a7719b00bb98b52072c6b9168 /filter/filter-input.c
parent24be06c166908871ff2b6f151e3e747cd57eacca (diff)
downloadgsoc2013-evolution-9ddabfee03542411d02851a1b1f144707ce32b82.tar
gsoc2013-evolution-9ddabfee03542411d02851a1b1f144707ce32b82.tar.gz
gsoc2013-evolution-9ddabfee03542411d02851a1b1f144707ce32b82.tar.bz2
gsoc2013-evolution-9ddabfee03542411d02851a1b1f144707ce32b82.tar.lz
gsoc2013-evolution-9ddabfee03542411d02851a1b1f144707ce32b82.tar.xz
gsoc2013-evolution-9ddabfee03542411d02851a1b1f144707ce32b82.tar.zst
gsoc2013-evolution-9ddabfee03542411d02851a1b1f144707ce32b82.zip
Set value of a simple type to a new string.
2000-07-31 Not Zed <NotZed@HelixCode.com> * filter-input.c (filter_input_set_value): Set value of a simple type to a new string. * filter-option.c (filter_option_set_current): New function to set the current value of an option. * filter-rule.c (filter_rule_find_list): New function to find a rule in a list, by name. (filter_rule_set_name): Let you set the name of a rule. * rule-context.c (rule_context_find_rule): Find a rule by name. (rule_context_create_part): Helper to find and clone a part by name. * filter-folder.c (button_clicked): Fix warning. * filter.glade: Add new widgets for vfolder rule editor. * vfolder-context.c (vfolder_context_init): Changed to use vfolder rule as the rule type. * vfolder-rule.c: New class to encode extra information required for vfolder rules. svn path=/trunk/; revision=4421
Diffstat (limited to 'filter/filter-input.c')
-rw-r--r--filter/filter-input.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/filter/filter-input.c b/filter/filter-input.c
index eca5afd2ff..f422a091b1 100644
--- a/filter/filter-input.c
+++ b/filter/filter-input.c
@@ -135,6 +135,20 @@ FilterInput *filter_input_new_type_name (const char *type)
return o;
}
+void filter_input_set_value(FilterInput *fi, const char *value)
+{
+ GList *l;
+
+ l = fi->values;
+ while (l) {
+ g_free(l->data);
+ l = g_list_next(l);
+ }
+ g_list_free(fi->values);
+
+ fi->values = g_list_append(NULL, g_strdup(value));
+}
+
static void xml_create(FilterElement *fe, xmlNodePtr node)
{
/* parent implementation */