aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-card-simple.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-09-13 18:02:24 +0800
committerChris Toshok <toshok@src.gnome.org>2002-09-13 18:02:24 +0800
commitdbe5c76eb0241a143c365f0f2731830e04fe1cc7 (patch)
treeb3c7cbb1417289485ee0c090a383f27de2796fce /addressbook/backend/ebook/e-card-simple.c
parent285af5226ade1b9de2681bcf166945c028d33f42 (diff)
downloadgsoc2013-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-card-simple.c')
-rw-r--r--addressbook/backend/ebook/e-card-simple.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/addressbook/backend/ebook/e-card-simple.c b/addressbook/backend/ebook/e-card-simple.c
index d6baddaadd..7f0dd263b4 100644
--- a/addressbook/backend/ebook/e-card-simple.c
+++ b/addressbook/backend/ebook/e-card-simple.c
@@ -831,6 +831,8 @@ char *e_card_simple_get (ECardSimple *simple,
switch (field) {
case E_CARD_SIMPLE_FIELD_NAME_OR_ORG:
if (simple->card) {
+ gboolean is_list;
+
gtk_object_get(GTK_OBJECT(simple->card),
"file_as", &string,
NULL);
@@ -846,8 +848,12 @@ char *e_card_simple_get (ECardSimple *simple,
NULL);
if (string && *string)
return g_strdup(string);
- string = e_card_simple_get_email(simple,
- E_CARD_SIMPLE_EMAIL_ID_EMAIL);
+ is_list = e_card_evolution_list (simple->card);
+ if (is_list)
+ string = _("Unnamed List");
+ else
+ string = e_card_simple_get_email(simple,
+ E_CARD_SIMPLE_EMAIL_ID_EMAIL);
return g_strdup(string);
} else
return NULL;