X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-address-book.c;h=c6a3d7671a4106fd9354260b4882e02fc3485041;hb=4927cb896fac6ab7438c56336313561800ff4308;hp=2bf3808bc338ff4a05f2b2f150f1c3ab6c85e185;hpb=04f5223eb9fb4d0bdec345863f4b8f9a1489326f;p=modest diff --git a/src/maemo/modest-address-book.c b/src/maemo/modest-address-book.c index 2bf3808..c6a3d76 100644 --- a/src/maemo/modest-address-book.c +++ b/src/maemo/modest-address-book.c @@ -131,7 +131,8 @@ open_addressbook_sync () } void -modest_address_book_add_address (const gchar *address) +modest_address_book_add_address (const gchar *address, + GtkWindow *parent) { OssoABookAccount *account = NULL; GtkWidget *dialog = NULL; @@ -147,13 +148,18 @@ modest_address_book_add_address (const gchar *address) } email_address = modest_text_utils_get_email_address (address); - + account = osso_abook_account_get (EVC_EMAIL, NULL, email_address); g_free (email_address); if (account) { dialog = osso_abook_add_to_contacts_dialog_new (contact_model, account); g_object_unref (account); + + modest_window_mgr_set_modal (modest_runtime_get_window_mgr(), + (GtkWindow *) parent, + (GtkWindow *) dialog); + gtk_dialog_run (GTK_DIALOG (dialog)); if (contact_model) {