X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-address-book.c;h=1256dd65b79cce86a8b1d2d81593cf99e2a00d1d;hp=46f92455533c26af7556b8736a663ceacbd9cf63;hb=4927cb896fac6ab7438c56336313561800ff4308;hpb=04f5223eb9fb4d0bdec345863f4b8f9a1489326f diff --git a/src/hildon2/modest-address-book.c b/src/hildon2/modest-address-book.c index 46f9245..1256dd6 100644 --- a/src/hildon2/modest-address-book.c +++ b/src/hildon2/modest-address-book.c @@ -104,7 +104,8 @@ open_addressbook () } void -modest_address_book_add_address (const gchar *address) +modest_address_book_add_address (const gchar *address, + GtkWindow *parent) { GtkWidget *dialog = NULL; gchar *email_address; @@ -115,10 +116,11 @@ modest_address_book_add_address (const gchar *address) } email_address = modest_text_utils_get_email_address (address); - + attribute = e_vcard_attribute_new (NULL, EVC_EMAIL); e_vcard_attribute_add_value (attribute, email_address); - dialog = osso_abook_temporary_contact_dialog_new (NULL, book, attribute, NULL); + dialog = osso_abook_temporary_contact_dialog_new (parent, book, attribute, NULL); + gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog);