aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/search/addresstypes.xml22
2 files changed, 27 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 74a723d4fb..09cdfc33f6 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2001-06-26 Christopher James Lahey <clahey@ximian.com>
+ * gui/search/addresstypes.xml: Added category searching to the
+ advanced search dialog here.
+
+2001-06-26 Christopher James Lahey <clahey@ximian.com>
+
* backend/pas/pas-backend-file.c (compare_category): Added
category searching to the file backend.
diff --git a/addressbook/gui/search/addresstypes.xml b/addressbook/gui/search/addresstypes.xml
index bf64e841b0..4ee23af613 100644
--- a/addressbook/gui/search/addresstypes.xml
+++ b/addressbook/gui/search/addresstypes.xml
@@ -53,6 +53,28 @@
</input>
<input type="address" name="email"/>
</part>
+ <part name="category">
+ <title>Category</title>
+ <input type="optionlist" name="category-type">
+ <option value="contains">
+ <title>contains</title>
+ <code>(contains "category" ${category})</code>
+ </option>
+ <option value="not contains">
+ <title>does not contain</title>
+ <code>(not (contains "category" ${category}))</code>
+ </option>
+ <option value="is">
+ <title>is</title>
+ <code>(is "category" ${category})</code>
+ </option>
+ <option value="is not">
+ <title>is not</title>
+ <code>(not (is "category" ${category}))</code>
+ </option>
+ </input>
+ <input type="string" name="category"/>
+ </part>
<part name="sexp">
<title>Expression</title>
<input type="code" name="code"/>