aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
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
parent285af5226ade1b9de2681bcf166945c028d33f42 (diff)
downloadgsoc2013-evolution-dbe5c76eb0241a143c365f0f2731830e04fe1cc7.tar.gz
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')
-rw-r--r--addressbook/backend/ebook/e-card-simple.c10
-rw-r--r--addressbook/backend/ebook/e-destination.c5
2 files changed, 12 insertions, 3 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;
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 ();
/+135 * Restore a patch to fix the build on ia64 that was removed during themarcus2006-10-171-0/+37 * Presenting GNOME 2.16.1 for FreeBSD. This release represents a massivemarcus2006-10-1410-417/+84 * - Remove the ICU crash workaround and really fix the issue. Ifjylefort2006-10-062-4/+3 * Avoid an icu crash in gimp by disabling optimizations.jylefort2006-09-191-0/+1 * Fix glib20-reference fetching.jylefort2006-09-081-1/+1 * Fix string collation by using the icu library, since the FreeBSD libcjylefort2006-08-233-0/+135 * Fix the build on ia64.marcus2006-07-071-0/+37 * - Add header in these *-reference ports.mezz2006-06-011-0/+1 * - Update to 2.10.3ahze2006-05-272-4/+4 * Add glib20-reference and the bsd.gnome-reference.mk framework.jylefort2006-05-101-0/+5 * Presenting GNOME 2.14.1 for FreeBSD! Checkoutmarcus2006-04-305-14/+23 * Conversion to a single libtool environment.ade2006-02-232-0/+5 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-16/+16 * I got too agressive when cleaning up leftover locale directories. Putmarcus2006-01-211-2/+0 * Update to 2.8.6.marcus2006-01-193-4/+10 * Update to 2.8.5bland2006-01-042-4/+4 * Update to 2.8.4.marcus2005-11-162-3/+4 * Presenting GNOME 2.12 for FreeBSD. The release is chock full of bug fixesmarcus2005-11-055-20/+25 * Update to 2.6.6.marcus2005-08-023-4/+6 * Fix patch name.jylefort2005-07-211-0/+0 * Fix memory leaks when G_ERRORCHECK_MUTEXES is used:jylefort2005-07-214-0/+267 * Fix patchingkwm2005-06-111-10/+10 * Update to 2.6.5.kwm2005-06-112-3/+3 * FreeBSD 504101 doesn't need the stacksize hack anymore, which marcus hasmezz2005-05-161-1/+1 * Update to 2.6.4.marcus2005-04-074-12/+15 * Presenting GNOME 2.10 for FreeBSD!marcus2005-03-126-37/+89 * Update MASTER_SITES for 2.3 -> 2.4.mezz2004-12-241-1/+1 * Clean up handling of locale directories at deinstall-time:kris2004-12-161-0/+6