diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-10 00:03:39 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-10 00:03:39 +0800 |
commit | 36c3c3cf936008c0c0f8b85605f4970f395b3fb7 (patch) | |
tree | 90f95f5cd18b2c9f764a6ca85c48cef56e46c949 /addressbook/gui/widgets | |
parent | a9cc8f7c2dbf8f5282cc287ae8d20bb586dd8702 (diff) | |
download | gsoc2013-evolution-36c3c3cf936008c0c0f8b85605f4970f395b3fb7.tar gsoc2013-evolution-36c3c3cf936008c0c0f8b85605f4970f395b3fb7.tar.gz gsoc2013-evolution-36c3c3cf936008c0c0f8b85605f4970f395b3fb7.tar.bz2 gsoc2013-evolution-36c3c3cf936008c0c0f8b85605f4970f395b3fb7.tar.lz gsoc2013-evolution-36c3c3cf936008c0c0f8b85605f4970f395b3fb7.tar.xz gsoc2013-evolution-36c3c3cf936008c0c0f8b85605f4970f395b3fb7.tar.zst gsoc2013-evolution-36c3c3cf936008c0c0f8b85605f4970f395b3fb7.zip |
Added a field that gives the name if it exists and the company name
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* backend/ebook/e-card-simple.c, backend/ebook/e-card-simple.h:
Added a field that gives the name if it exists and the company
name otherwise.
* gui/component/e-addressbook-model.c: Formatting changes.
* gui/component/select-names/e-select-names-table-model.c: Added
stripping of names and display of company name if name doesn't
exist.
* gui/component/select-names/e-select-names.c: Fixed up the
display so that we display both name and email address.
svn path=/trunk/; revision=4020
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-model.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 2401677807..ee36d2ca1a 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -81,8 +81,9 @@ addressbook_value_at (ETableModel *etc, int col, int row) { EAddressbookModel *addressbook = E_ADDRESSBOOK_MODEL(etc); const char *value; - if ( col >= E_CARD_SIMPLE_FIELD_LAST - 1|| row >= addressbook->data_count ) + if ( col >= E_CARD_SIMPLE_FIELD_LAST - 1 || row >= addressbook->data_count ) return NULL; + value = e_card_simple_get_const(addressbook->data[row], col + 1); return (void *)(value ? value : ""); |