From a6458a2bb6d4d85a541b2607c56f83e1bee47327 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 30 Apr 2002 20:12:22 +0000 Subject: Added this function so that there would be less duplication of cards 2002-04-30 Christopher James Lahey * gui/widgets/e-addressbook-model.c, gui/widgets/e-addressbook-model.h (e_addressbook_model_peek_card): Added this function so that there would be less duplication of cards during run time when duplication is unnecessary. * gui/widgets/e-addressbook-view.c: Cleaned up get_card_list and a number of associated functions to be much more uniform and simpler. (get_has_email_address): Don't show the "Send Message to Contact" menu item if there are no email addresses in the listed contacts. Fixes bug #1298. svn path=/trunk/; revision=16649 --- addressbook/gui/widgets/e-addressbook-model.h | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'addressbook/gui/widgets/e-addressbook-model.h') diff --git a/addressbook/gui/widgets/e-addressbook-model.h b/addressbook/gui/widgets/e-addressbook-model.h index 6482409075..5e018388b8 100644 --- a/addressbook/gui/widgets/e-addressbook-model.h +++ b/addressbook/gui/widgets/e-addressbook-model.h @@ -55,21 +55,24 @@ struct _EAddressbookModelClass { }; -GtkType e_addressbook_model_get_type (void); -EAddressbookModel *e_addressbook_model_new (void); +GtkType e_addressbook_model_get_type (void); +EAddressbookModel *e_addressbook_model_new (void); /* Returns object with ref count of 1. */ -ECard *e_addressbook_model_get_card (EAddressbookModel *model, - int row); -EBook *e_addressbook_model_get_ebook (EAddressbookModel *model); +ECard *e_addressbook_model_get_card (EAddressbookModel *model, + int row); +const ECard *e_addressbook_model_peek_card (EAddressbookModel *model, + int row); +EBook *e_addressbook_model_get_ebook (EAddressbookModel *model); -void e_addressbook_model_stop (EAddressbookModel *model); -gboolean e_addressbook_model_can_stop (EAddressbookModel *model); +void e_addressbook_model_stop (EAddressbookModel *model); +gboolean e_addressbook_model_can_stop (EAddressbookModel *model); -void e_addressbook_model_force_folder_bar_message (EAddressbookModel *model); +void e_addressbook_model_force_folder_bar_message (EAddressbookModel *model); -int e_addressbook_model_card_count (EAddressbookModel *model); -ECard *e_addressbook_model_card_at (EAddressbookModel *model, int index); -gboolean e_addressbook_model_editable (EAddressbookModel *model); +int e_addressbook_model_card_count (EAddressbookModel *model); +ECard *e_addressbook_model_card_at (EAddressbookModel *model, + int index); +gboolean e_addressbook_model_editable (EAddressbookModel *model); #endif /* _E_ADDRESSBOOK_MODEL_H_ */ -- cgit v1.2.3