aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-minicard.c
diff options
context:
space:
mode:
authorJon Trowbridge <trow@src.gnome.org>2001-07-07 14:39:30 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-07-07 14:39:30 +0800
commitf9e0870bb8f2cee522b1d74d8d430cd898a420e5 (patch)
treeafe1ea372bafca21d8f328fd861305919fcc97a0 /addressbook/gui/widgets/e-minicard.c
parentda9c4d10641eed27263f12c7415100348991ef32 (diff)
downloadgsoc2013-evolution-f9e0870bb8f2cee522b1d74d8d430cd898a420e5.tar
gsoc2013-evolution-f9e0870bb8f2cee522b1d74d8d430cd898a420e5.tar.gz
gsoc2013-evolution-f9e0870bb8f2cee522b1d74d8d430cd898a420e5.tar.bz2
gsoc2013-evolution-f9e0870bb8f2cee522b1d74d8d430cd898a420e5.tar.lz
gsoc2013-evolution-f9e0870bb8f2cee522b1d74d8d430cd898a420e5.tar.xz
gsoc2013-evolution-f9e0870bb8f2cee522b1d74d8d430cd898a420e5.tar.zst
gsoc2013-evolution-f9e0870bb8f2cee522b1d74d8d430cd898a420e5.zip
CVS is unhappy this evening. My commit keeps dying in the middle.
svn path=/trunk/; revision=10883
Diffstat (limited to 'addressbook/gui/widgets/e-minicard.c')
-rw-r--r--addressbook/gui/widgets/e-minicard.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index 2d74280b72..123392df95 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -674,6 +674,17 @@ add_field (EMinicard *e_minicard, ECardSimpleField field, gdouble left_width)
name = g_strdup_printf("%s:", e_card_simple_get_name(e_minicard->simple, field));
string = e_card_simple_get(e_minicard->simple, field);
+ /* 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));
+ }
+ }
+
new_item = e_minicard_label_new(group);
gnome_canvas_item_set( new_item,
"width", e_minicard->width - 4.0,