From e6e1655f31dca8aceb4c97c966d44bac23eb7200 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Tue, 6 Mar 2001 10:00:44 +0000 Subject: Fix a reference counting bug. 2001-03-06 Jon Trowbridge * 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 --- addressbook/backend/ebook/e-destination.c | 8 ++++++++ addressbook/backend/ebook/e-destination.h | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'addressbook/backend/ebook') 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 *); -- cgit v1.2.3