diff options
author | Chris Toshok <toshok@ximian.com> | 2001-07-25 05:17:26 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-07-25 05:17:26 +0800 |
commit | ad7e9b2471129eca0ce80b35c19b81b8f0a29e58 (patch) | |
tree | 41792266835057472037e1cb8a2f8da2843ce1c8 /addressbook/gui/widgets/e-minicard.c | |
parent | aa25742b3831318c1de39655f3d6e2748262b2db (diff) | |
download | gsoc2013-evolution-ad7e9b2471129eca0ce80b35c19b81b8f0a29e58.tar.gz gsoc2013-evolution-ad7e9b2471129eca0ce80b35c19b81b8f0a29e58.tar.zst gsoc2013-evolution-ad7e9b2471129eca0ce80b35c19b81b8f0a29e58.zip |
need the EDestination magic here too for when we modify an already shown
2001-07-24 Chris Toshok <toshok@ximian.com>
* gui/widgets/e-minicard.c (remodel): need the EDestination magic
here too for when we modify an already shown card.
* gui/contact-list-editor/e-contact-list-model.c: make
parent_class static, just to be anal.
* gui/contact-list-editor/e-contact-list-editor.c
(remove_entry_cb): removing entries changes the list, so flag it.
(table_drag_data_received_cb): restrict cards we add to lists to
be non-list cards.
(extract_info): clear out the email list in the card before we
repopulate it from the contact list model.
(fill_in_info): set the checkbox to active/inactive based on
thecard.
svn path=/trunk/; revision=11356
Diffstat (limited to 'addressbook/gui/widgets/e-minicard.c')
-rw-r--r-- | addressbook/gui/widgets/e-minicard.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index 123392df95..6835017a5b 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -774,6 +774,17 @@ remodel( EMinicard *e_minicard ) string = e_card_simple_get(e_minicard->simple, field); if (string && *string) { + /* Magically convert embedded XML into an address. */ + if (!strncmp (string, "<?xml", 4)) { + EDestination *dest = e_destination_import (string); + if (dest != NULL) { + gchar *new_string = g_strdup (e_destination_get_address (dest)); + g_free (string); + string = new_string; + gtk_object_unref (GTK_OBJECT (dest)); + } + } + e_minicard->fields = g_list_append(e_minicard->fields, minicard_field); gtk_object_set(GTK_OBJECT(minicard_field->label), "field", string, |