aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-format.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-10 07:24:02 +0800
committerDan Winship <danw@src.gnome.org>2000-07-10 07:24:02 +0800
commit7ffeca2735c0d928be4f5379de136e0606ccb652 (patch)
tree1558695ee9b2c7e0822b33b7d7b5b2b7c8a0a223 /filter/filter-format.c
parent90d51074c9c7c5284e3ff3e0a0eb4b5f5d96761f (diff)
downloadgsoc2013-evolution-7ffeca2735c0d928be4f5379de136e0606ccb652.tar
gsoc2013-evolution-7ffeca2735c0d928be4f5379de136e0606ccb652.tar.gz
gsoc2013-evolution-7ffeca2735c0d928be4f5379de136e0606ccb652.tar.bz2
gsoc2013-evolution-7ffeca2735c0d928be4f5379de136e0606ccb652.tar.lz
gsoc2013-evolution-7ffeca2735c0d928be4f5379de136e0606ccb652.tar.xz
gsoc2013-evolution-7ffeca2735c0d928be4f5379de136e0606ccb652.tar.zst
gsoc2013-evolution-7ffeca2735c0d928be4f5379de136e0606ccb652.zip
add a "string" type
* filter-xml.[ch]: add a "string" type * filtertype.xml, vfoldertypes.xml: Use type="string" rather than "folder" for subject/body matching. * filter-arg-types.c: Update some strings for "text" input. Fix some warnings (including one that pointed out a real bug). * filter-arg.c, filter-druid.c, filter-format.c: fix warnings svn path=/trunk/; revision=4025
Diffstat (limited to 'filter/filter-format.c')
-rw-r--r--filter/filter-format.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/filter/filter-format.c b/filter/filter-format.c
index b7a2a956be..7f8f388ef5 100644
--- a/filter/filter-format.c
+++ b/filter/filter-format.c
@@ -13,46 +13,6 @@
#define d(x)
-/* FIXME: remove static, this is defined in filter-xml */
-static int
-filter_find_rule(struct filter_rule *a, char *name)
-{
- d(printf("finding, is %s = %s?\n", a->name, name));
- return strcmp(a->name, name);
-}
-
-static int
-filter_find_arg(FilterArg *a, char *name)
-{
- d(printf("finding, is %s = %s?\n", a->name, name));
- return strcmp(a->name, name);
-}
-
-static int display_order[] = { FILTER_XML_MATCH, FILTER_XML_ACTION, FILTER_XML_EXCEPT };
-
-static struct filter_option *
-option_clone(struct filter_option *source)
-{
- struct filter_option *dest = g_malloc0(sizeof(*dest));
- GList *loptions;
- struct filter_optionrule *old, *new;
-
- dest->type = source->type;
- dest->description = source->description;
- loptions = dest->options;
- while (loptions) {
- old = loptions->data;
- new = g_malloc0(sizeof(*new));
- new->rule = old->rule;
- /* FIXME: need to copy any args as well!!! */
- dest->options = g_list_append(dest->options, new);
- loptions = g_list_next(loptions);
- }
- return dest;
-}
-
-
-
struct description_decode_lambda {
GString *str;
GList *args;
@@ -64,7 +24,7 @@ static char *
arg_text(FilterArg *arg)
{
char *out = NULL;
- GList *value, *next;
+ GList *value;
GString *str;
value = arg->values;
@@ -189,7 +149,6 @@ description_decode_html(struct filter_desc *d, struct description_decode_lambda
void
filter_description_html_write(GList *description, GList *args, GtkHTML *html, GtkHTMLStream *stream)
{
- char *txt;
struct description_decode_lambda l;
d(printf("\ndecoding ...\n"));