diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-06 20:10:40 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-06 20:10:40 +0800 |
commit | 1ce0ee997b7fe65d2146d474d70233f0c1775539 (patch) | |
tree | 15b0285997f6d5c7623ec25c0d1da87bed66cdc1 /plugins/vcard-inline/vcard-inline.c | |
parent | f1acdb920f9e18040ff421c55d9cd0f1c1354171 (diff) | |
download | gsoc2013-evolution-1ce0ee997b7fe65d2146d474d70233f0c1775539.tar.gz gsoc2013-evolution-1ce0ee997b7fe65d2146d474d70233f0c1775539.tar.zst gsoc2013-evolution-1ce0ee997b7fe65d2146d474d70233f0c1775539.zip |
Make vcard-inline actually work.
Diffstat (limited to 'plugins/vcard-inline/vcard-inline.c')
-rw-r--r-- | plugins/vcard-inline/vcard-inline.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/vcard-inline/vcard-inline.c b/plugins/vcard-inline/vcard-inline.c index 68c9813da5..2d6a93a91d 100644 --- a/plugins/vcard-inline/vcard-inline.c +++ b/plugins/vcard-inline/vcard-inline.c @@ -175,16 +175,11 @@ org_gnome_vcard_inline_embed (EMFormatHTML *format, GtkWidget *button_box; GtkWidget *container; GtkWidget *widget; - EContact *contact; guint length; vcard_object = (VCardInlinePObject *) object; length = g_list_length (vcard_object->contact_list); - - if (vcard_object->contact_list != NULL) - contact = E_CONTACT (vcard_object->contact_list->data); - else - contact = NULL; + g_return_val_if_fail (length > 0, FALSE); container = GTK_WIDGET (embedded); @@ -208,6 +203,11 @@ org_gnome_vcard_inline_embed (EMFormatHTML *format, vcard_object->contact_display = g_object_ref (widget); gtk_widget_show (widget); + eab_contact_display_render ( + EAB_CONTACT_DISPLAY (vcard_object->contact_display), + E_CONTACT (vcard_object->contact_list->data), + vcard_object->mode); + widget = gtk_label_new (NULL); gtk_box_pack_start (GTK_BOX (container), widget, TRUE, TRUE, 0); vcard_object->message_label = g_object_ref (widget); |