diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-03-06 18:00:44 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-03-06 18:00:44 +0800 |
commit | e6e1655f31dca8aceb4c97c966d44bac23eb7200 (patch) | |
tree | e3334cea315a90e669d0d16144ede3ba67cf9ab4 /addressbook/backend/ebook | |
parent | 10d0e730eccccf34fc53dc8c1d6145fca1f52f57 (diff) | |
download | gsoc2013-evolution-e6e1655f31dca8aceb4c97c966d44bac23eb7200.tar gsoc2013-evolution-e6e1655f31dca8aceb4c97c966d44bac23eb7200.tar.gz gsoc2013-evolution-e6e1655f31dca8aceb4c97c966d44bac23eb7200.tar.bz2 gsoc2013-evolution-e6e1655f31dca8aceb4c97c966d44bac23eb7200.tar.lz gsoc2013-evolution-e6e1655f31dca8aceb4c97c966d44bac23eb7200.tar.xz gsoc2013-evolution-e6e1655f31dca8aceb4c97c966d44bac23eb7200.tar.zst gsoc2013-evolution-e6e1655f31dca8aceb4c97c966d44bac23eb7200.zip |
Fix a reference counting bug.
2001-03-06 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/e-select-names-model.c
(e_select_names_model_replace): Fix a reference counting bug.
* gui/component/select-names/e-select-names-manager.c (popup_cb):
A callback for creating the appropriate popup by calling
e_select_names_popup.
(e_select_names_manager_create_entry): Connect popup_cb to the
entry's popup signal
* gui/component/select-names/e-select-names-popup.c: Added. Code
for popup right-click menus for recipient entries. Still a bit
incomplete.
* backend/ebook/e-destination.c (e_destination_get_email_num):
Added.
* contact-editor/e-contact-quick-add.c: Added. Some code and a
dialog for very quickly adding entries to the address book.
Still not fully working.
svn path=/trunk/; revision=8567
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r-- | addressbook/backend/ebook/e-destination.c | 8 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-destination.h | 7 |
2 files changed, 12 insertions, 3 deletions
diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c index 92aed64715..c1e0ad8a78 100644 --- a/addressbook/backend/ebook/e-destination.c +++ b/addressbook/backend/ebook/e-destination.c @@ -183,6 +183,14 @@ e_destination_get_card (const EDestination *dest) return dest->priv->card; } +gint +e_destination_get_email_num (const EDestination *dest) +{ + g_return_val_if_fail (dest && E_IS_DESTINATION (dest), -1); + + return dest->priv->card_email_num; +} + const gchar * e_destination_get_string (const EDestination *dest) { diff --git a/addressbook/backend/ebook/e-destination.h b/addressbook/backend/ebook/e-destination.h index 509a351f1d..2014f8e340 100644 --- a/addressbook/backend/ebook/e-destination.h +++ b/addressbook/backend/ebook/e-destination.h @@ -60,9 +60,10 @@ EDestination *e_destination_copy (EDestination *); void e_destination_set_card (EDestination *, ECard *card, gint email_num); void e_destination_set_string (EDestination *, const gchar *string); -ECard *e_destination_get_card (const EDestination *); -const gchar *e_destination_get_string (const EDestination *); -gint e_destination_get_strlen (const EDestination *); /* a convenience function... */ +ECard *e_destination_get_card (const EDestination *); +gint e_destination_get_email_num (const EDestination *); +const gchar *e_destination_get_string (const EDestination *); +gint e_destination_get_strlen (const EDestination *); /* a convenience function... */ const gchar *e_destination_get_email (const EDestination *); const gchar *e_destination_get_email_verbose (const EDestination *); |