diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-05-01 04:12:22 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-05-01 04:12:22 +0800 |
commit | a6458a2bb6d4d85a541b2607c56f83e1bee47327 (patch) | |
tree | cb3d0399bb7bed8cac4cd0eb85c8fbdf2e88b9bb /addressbook/gui/widgets/e-addressbook-model.c | |
parent | bb1d2316f024efb5c232da21aff2c6b2ddcf711c (diff) | |
download | gsoc2013-evolution-a6458a2bb6d4d85a541b2607c56f83e1bee47327.tar gsoc2013-evolution-a6458a2bb6d4d85a541b2607c56f83e1bee47327.tar.gz gsoc2013-evolution-a6458a2bb6d4d85a541b2607c56f83e1bee47327.tar.bz2 gsoc2013-evolution-a6458a2bb6d4d85a541b2607c56f83e1bee47327.tar.lz gsoc2013-evolution-a6458a2bb6d4d85a541b2607c56f83e1bee47327.tar.xz 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.c')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-model.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 320c0c4ad2..5647e1d88e 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -444,6 +444,16 @@ e_addressbook_model_get_card(EAddressbookModel *model, return NULL; } +const ECard * +e_addressbook_model_peek_card(EAddressbookModel *model, + int row) +{ + if (model->data && 0 <= row && row < model->data_count) { + return model->data[row]; + } + return NULL; +} + static void e_addressbook_model_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) { |