diff options
author | Tobias Mueller <tobiasmue@src.gnome.org> | 2008-06-28 01:23:45 +0800 |
---|---|---|
committer | Tobias Mueller <tobiasmue@src.gnome.org> | 2008-06-28 01:23:45 +0800 |
commit | 9d3c5b2a5b7970ec643743363f2cbd2f885d26ff (patch) | |
tree | 7a1aaee7968bb22443274eab594c2d6ff5850a33 /filter | |
parent | 5f9edf647ec7dca445c9101c94eb699d3c0c9c38 (diff) | |
download | gsoc2013-evolution-9d3c5b2a5b7970ec643743363f2cbd2f885d26ff.tar.gz gsoc2013-evolution-9d3c5b2a5b7970ec643743363f2cbd2f885d26ff.tar.zst gsoc2013-evolution-9d3c5b2a5b7970ec643743363f2cbd2f885d26ff.zip |
Patch from Maciej Piechotka <uzytkownik2@gmail.com>
which fixes bug 526262 - "untranslated strings in advanced search"
svn path=/trunk/; revision=35689
Diffstat (limited to 'filter')
-rw-r--r-- | filter/ChangeLog | 8 | ||||
-rw-r--r-- | filter/filter-option.c | 2 | ||||
-rw-r--r-- | filter/filter-part.c | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 5eb7224d86..1c4e3cd3b3 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,11 @@ +2008-06-16 Maciej Piechotka <uzytkownik2@gmal.com> + + ** Fix for bug #526262 + + * filter-part.c: (xml_create): + * filter-part.c: (filter_part_xml_create): + Handle _title element in analogical way as title + 2008-06-19 Milan Crha <mcrha@redhat.com> ** Fix for bug #382783 diff --git a/filter/filter-option.c b/filter/filter-option.c index 0814c0a536..5c4283b889 100644 --- a/filter/filter-option.c +++ b/filter/filter-option.c @@ -233,7 +233,7 @@ xml_create (FilterElement *fe, xmlNodePtr node) value = (char *)xmlGetProp (n, (const unsigned char *)"value"); work = n->children; while (work) { - if (!strcmp ((char *)work->name, "title")) { + if (!strcmp ((char *)work->name, "title") || !strcmp ((char *)work->name, "_title")) { if (!title) { if (!(tmp = (char *)xmlNodeGetContent (work))) tmp = (char *)xmlStrdup ((const unsigned char *)""); diff --git a/filter/filter-part.c b/filter/filter-part.c index 01756fb711..7ed7c306e6 100644 --- a/filter/filter-part.c +++ b/filter/filter-part.c @@ -189,7 +189,7 @@ filter_part_xml_create (FilterPart *ff, xmlNodePtr node, RuleContext *rc) } else { g_warning ("Invalid xml format, missing/unknown input type"); } - } else if (!strcmp ((char *)n->name, "title")) { + } else if (!strcmp ((char *)n->name, "title") || !strcmp ((char *)n->name, "_title")) { if (!ff->title) { str = (char *)xmlNodeGetContent (n); ff->title = g_strdup (str); |