From ca88172d8e20fdbafd2e92a2c30e250f86b46222 Mon Sep 17 00:00:00 2001 From: Artem Garmash Date: Sun, 17 Jan 2010 01:39:13 +0200 Subject: [PATCH] Pass account to the temporary contact dialog --- src/el-home-applet.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/el-home-applet.c b/src/el-home-applet.c index 8586e74..5f2c386 100644 --- a/src/el-home-applet.c +++ b/src/el-home-applet.c @@ -1094,12 +1094,14 @@ create_temporary_contact_dialog (const gchar *remote_id, { GtkWidget *dialog = NULL; const gchar *vcard = NULL; + McAccount *account = NULL; if (account_id) { vcard = osso_abook_account_manager_get_vcard_field (NULL, account_id); + account = osso_abook_account_manager_lookup_by_name (NULL, account_id); } - if (vcard) { + if (vcard && account) { EVCardAttribute *attribute = e_vcard_attribute_new (NULL, vcard); e_vcard_attribute_add_value (attribute, remote_id); @@ -1107,7 +1109,7 @@ create_temporary_contact_dialog (const gchar *remote_id, (NULL, NULL, /*EBook *book,*/ attribute, - NULL /*McAccount *account*/); + account); g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), -- 1.7.9.5