aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/backend/pas/pas-backend-file.c3
-rw-r--r--addressbook/gui/component/addressbook.c4
3 files changed, 11 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index d55cd24354..388a984cc2 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,12 @@
2000-07-12 Christopher James Lahey <clahey@helixcode.com>
+ * backend/pas/pas-backend-file.c: Do case insensitive compares.
+
+ * addressbook/gui/component/addressbook.c: Make quick search
+ search both name and company name.
+
+2000-07-12 Christopher James Lahey <clahey@helixcode.com>
+
* contact-editor/e-contact-editor.c: Add icons to the toolbars.
2000-07-12 Christopher James Lahey <clahey@helixcode.com>
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index c9befc7bb1..cc7d8efe0c 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -22,6 +22,7 @@
#include "pas-card-cursor.h"
#include <ebook/e-card.h>
#include <e-util/e-sexp.h>
+#include <e-util/e-util.h>
#define PAS_BACKEND_FILE_VERSION_NAME "PAS-DB-VERSION"
#define PAS_BACKEND_FILE_VERSION "0.1"
@@ -311,7 +312,7 @@ func_contains(struct _ESExp *f, int argc, struct _ESExpResult **argv, void *data
{
PASBackendFileSearchContext *ctx = data;
- return entry_compare (ctx, f, argc, argv, strstr);
+ return entry_compare (ctx, f, argc, argv, e_strstrcase);
}
static char *
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index e079550d92..7295682bf7 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -426,8 +426,8 @@ search_entry_activated (GtkWidget* widget, gpointer user_data)
if (search_word && strlen (search_word))
search_query = g_strdup_printf (
- "(contains \"full_name\" \"%s\")",
- search_word);
+ "(or (contains \"full_name\" \"%s\") (contains \"org\" \"%s\"))",
+ search_word, search_word);
else
search_query = g_strdup (
"(contains \"full_name\" \"\")");