From 5c2d5ded3f02254945c91b393dd73a9af7b67051 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 11 Aug 2000 01:36:14 +0000 Subject: New search dialog for addressbook. 2000-08-10 Christopher James Lahey * gui/search/, gui/search/addresstypes.xml: New search dialog for addressbook. svn path=/trunk/; revision=4715 --- .../gui/component/select-names/e-select-names.c | 12 ++----- addressbook/gui/search/addresstypes.xml | 37 ++++++++++++++++++++++ 2 files changed, 39 insertions(+), 10 deletions(-) create mode 100644 addressbook/gui/search/addresstypes.xml (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index cbe89f6362..272a1f5e2a 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -41,8 +41,6 @@ static GnomeDialogClass *parent_class = NULL; /* The arguments we take */ enum { ARG_0, - ARG_BOOK, - ARG_QUERY, }; typedef struct { @@ -85,11 +83,6 @@ e_select_names_class_init (ESelectNamesClass *klass) parent_class = gtk_type_class (PARENT_TYPE); - gtk_object_add_arg_type ("ESelectNames::book", GTK_TYPE_OBJECT, - GTK_ARG_READWRITE, ARG_BOOK); - gtk_object_add_arg_type ("ESelectNames::query", GTK_TYPE_STRING, - GTK_ARG_READWRITE, ARG_QUERY); - object_class->set_arg = e_select_names_set_arg; object_class->get_arg = e_select_names_get_arg; object_class->destroy = e_select_names_destroy; @@ -98,15 +91,13 @@ e_select_names_class_init (ESelectNamesClass *klass) #define SPEC " \ \ 2 \ - 1 \ \ \ " #define SPEC2 " \ \ - 0 \ - 1 \ + 0 \ \ \ " @@ -118,6 +109,7 @@ set_book(EBook *book, EBookStatus status, ETableModel *model) { gtk_object_set(GTK_OBJECT(model), "book", book, + "query", "(not (is \"email\" \"\"))", NULL); gtk_object_unref(GTK_OBJECT(book)); } diff --git a/addressbook/gui/search/addresstypes.xml b/addressbook/gui/search/addresstypes.xml new file mode 100644 index 0000000000..57fc10d330 --- /dev/null +++ b/addressbook/gui/search/addresstypes.xml @@ -0,0 +1,37 @@ + + + + + Sender + + + + + + + + Sender + + + + + + + + Expression + + + + -- cgit