diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-06-02 03:24:29 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-06-02 03:24:29 +0800 |
commit | 61de59408fb2c337d779ba70aa0c1e4217d2078b (patch) | |
tree | d20be488756f35c6192c14f0bb432ceddb6b43e3 | |
parent | 7871ce59d70193f230c87def8d23f5ab03b59945 (diff) | |
download | gsoc2013-evolution-61de59408fb2c337d779ba70aa0c1e4217d2078b.tar.gz gsoc2013-evolution-61de59408fb2c337d779ba70aa0c1e4217d2078b.tar.zst gsoc2013-evolution-61de59408fb2c337d779ba70aa0c1e4217d2078b.zip |
Search for ad in arg->values instead of text since it's a list of
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* filter-arg-types.c (arg_address_edit_value): Search for ad in
arg->values instead of text since it's a list of
filter_arg_adresses. Also, free the old value in the list.
svn path=/trunk/; revision=3338
-rw-r--r-- | filter/ChangeLog | 6 | ||||
-rw-r--r-- | filter/filter-arg-types.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index cd7acabaee..60aaed7af4 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,9 @@ +2000-06-01 Christopher James Lahey <clahey@helixcode.com> + + * filter-arg-types.c (arg_address_edit_value): Search for ad in + arg->values instead of text since it's a list of + filter_arg_adresses. Also, free the old value in the list. + 2000-05-30 Not Zed <NotZed@HelixCode.com> * filtertypes.xml: And here too. diff --git a/filter/filter-arg-types.c b/filter/filter-arg-types.c index fd0bb32248..95a7933828 100644 --- a/filter/filter-arg-types.c +++ b/filter/filter-arg-types.c @@ -347,8 +347,9 @@ arg_address_edit_value(FilterArg *arg, int index) newtext = g_strdup(gtk_entry_get_text(entry)); gtk_object_unref((GtkObject *)entry); if (index>=0 - && (node = g_list_find(arg->values, text))) { + && (node = g_list_find(arg->values, ad))) { ad = node->data; + g_free(ad->email); ad->email = newtext; } else { ad = g_malloc0(sizeof(*ad)); |