aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-model.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-05-01 04:12:22 +0800
committerChris Lahey <clahey@src.gnome.org>2002-05-01 04:12:22 +0800
commita6458a2bb6d4d85a541b2607c56f83e1bee47327 (patch)
treecb3d0399bb7bed8cac4cd0eb85c8fbdf2e88b9bb /addressbook/gui/widgets/e-addressbook-model.h
parentbb1d2316f024efb5c232da21aff2c6b2ddcf711c (diff)
downloadgsoc2013-evolution-a6458a2bb6d4d85a541b2607c56f83e1bee47327.tar.gz
gsoc2013-evolution-a6458a2bb6d4d85a541b2607c56f83e1bee47327.tar.zst
gsoc2013-evolution-a6458a2bb6d4d85a541b2607c56f83e1bee47327.zip
Added this function so that there would be less duplication of cards
2002-04-30 Christopher James Lahey <clahey@ximian.com> * 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
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-model.h')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.h25
1 files changed, 14 insertions, 11 deletions
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_ */