diff options
author | Chris Toshok <toshok@ximian.com> | 2002-09-13 18:02:24 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-09-13 18:02:24 +0800 |
commit | dbe5c76eb0241a143c365f0f2731830e04fe1cc7 (patch) | |
tree | b3c7cbb1417289485ee0c090a383f27de2796fce /addressbook/backend/ebook/e-destination.c | |
parent | 285af5226ade1b9de2681bcf166945c028d33f42 (diff) | |
download | gsoc2013-evolution-dbe5c76eb0241a143c365f0f2731830e04fe1cc7.tar gsoc2013-evolution-dbe5c76eb0241a143c365f0f2731830e04fe1cc7.tar.gz gsoc2013-evolution-dbe5c76eb0241a143c365f0f2731830e04fe1cc7.tar.bz2 gsoc2013-evolution-dbe5c76eb0241a143c365f0f2731830e04fe1cc7.tar.lz gsoc2013-evolution-dbe5c76eb0241a143c365f0f2731830e04fe1cc7.tar.xz gsoc2013-evolution-dbe5c76eb0241a143c365f0f2731830e04fe1cc7.tar.zst gsoc2013-evolution-dbe5c76eb0241a143c365f0f2731830e04fe1cc7.zip |
[ Fixes bug #30250 ] handle "Unnamed Lists" here by setting their name to
2002-09-13 Chris Toshok <toshok@ximian.com>
[ Fixes bug #30250 ]
* backend/ebook/e-destination.c (e_destination_get_name): handle
"Unnamed Lists" here by setting their name to _("Unnamed List').
* backend/ebook/e-card-simple.c (e_card_simple_get): same.
* gui/contact-list-editor/e-contact-list-editor.c (is_named): new
function, return TRUE if the name field is filled in.
(prompt_to_save_changes): return TRUE if the list isn't named
(meaning it's not saveable.)
(command_state_changed): saving requires a name.
(add_email_cb): always call command_state_changed.
(remove_entry_cb): same.
(list_name_changed_cb): same.
(visible_addrs_toggled_cb): same.
(table_drag_data_received_cb): same.
svn path=/trunk/; revision=18059
Diffstat (limited to 'addressbook/backend/ebook/e-destination.c')
-rw-r--r-- | addressbook/backend/ebook/e-destination.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c index c83d908e9b..25932c29e6 100644 --- a/addressbook/backend/ebook/e-destination.c +++ b/addressbook/backend/ebook/e-destination.c @@ -702,7 +702,10 @@ e_destination_get_name (const EDestination *dest) if (priv->name == NULL || *priv->name == '\0') { g_free (priv->name); - priv->name = g_strdup (e_destination_get_email (dest)); + if (e_card_evolution_list (priv->card)) + priv->name = g_strdup (_("Unnamed List")); + else + priv->name = g_strdup (e_destination_get_email (dest)); } } else if (priv->raw != NULL) { CamelInternetAddress *addr = camel_internet_address_new (); |