This is a manual merge of branch drop split view intro trunk.
[modest] / src / hildon2 / modest-address-book.c
index 8ad0df8..7377e4e 100644 (file)
@@ -203,9 +203,12 @@ modest_address_book_select_addresses (ModestRecptEditor *recpt_editor)
 #else /* MODEST_ABOOK_API < 4 */
        /* TODO: figure out how to make the contact chooser modal */
        contact_chooser = osso_abook_contact_chooser_new_with_capabilities (NULL,
-                                                                           _("mcen_me_editor_selectrecipients"),
+                                                                           _AB("addr_ti_dia_select_contacts"),
                                                                            OSSO_ABOOK_CAPS_EMAIL, 
                                                                            OSSO_ABOOK_CONTACT_ORDER_NAME);
+       /* Enable multiselection */
+       osso_abook_contact_chooser_set_maximum_selection (OSSO_ABOOK_CONTACT_CHOOSER (contact_chooser),
+                                                         G_MAXUINT);
 
        if (gtk_dialog_run (GTK_DIALOG (contact_chooser)) == GTK_RESPONSE_OK)
                contacts_list = osso_abook_contact_chooser_get_selection (OSSO_ABOOK_CONTACT_CHOOSER (contact_chooser));
@@ -362,15 +365,15 @@ commit_contact(EContact * contact, gboolean is_new)
 {
        g_return_if_fail (contact);
        g_return_if_fail (book);
-       
+
        if (!contact || !book)
                return;
-       
+
 #if MODEST_ABOOK_API < 4
        osso_abook_contact_commit(contact, is_new, book);
 #else
        if (OSSO_ABOOK_IS_CONTACT (contact)) {
-               osso_abook_contact_commit(contact, is_new, book, NULL);
+               osso_abook_contact_commit(OSSO_ABOOK_CONTACT(contact), is_new, book, NULL);
        } else {
                e_book_commit_contact (book, contact, NULL);
        }
@@ -464,8 +467,7 @@ run_add_email_addr_to_contact_dlg(const gchar * contact_name)
        add_email_addr_to_contact_dlg =
            gtk_dialog_new_with_buttons(_("mcen_ti_add_email_title"), NULL,
                                        GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
-                                       _("mcen_bd_dialog_ok"), GTK_RESPONSE_ACCEPT,
-                                       _("mcen_bd_dialog_cancel"), GTK_RESPONSE_REJECT, NULL);
+                                       _HL("wdgt_bd_done"), GTK_RESPONSE_ACCEPT, NULL);
        gtk_dialog_set_has_separator(GTK_DIALOG(add_email_addr_to_contact_dlg), FALSE);
        /*Set app_name & state_save related tags to the window */
 
@@ -554,8 +556,7 @@ select_email_addrs_for_contact(GList * email_addr_list)
            gtk_dialog_new_with_buttons(_("mcen_ti_select_email_title"),
                                        NULL,
                                        GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
-                                       _("mcen_bd_dialog_ok"), GTK_RESPONSE_ACCEPT,
-                                       _("mcen_bd_dialog_cancel"), GTK_RESPONSE_REJECT, NULL);
+                                       _HL("wdgt_bd_done"), GTK_RESPONSE_ACCEPT, NULL);
        gtk_dialog_set_has_separator(GTK_DIALOG(select_email_addr_dlg), FALSE);
 
        /* Make the window approximately big enough, because it doesn't resize to be big enough 
@@ -895,8 +896,8 @@ select_contacts_for_name_dialog (const gchar *name)
 
                /* TODO: figure out how to make the contact chooser modal */
                contact_dialog = osso_abook_contact_chooser_new_with_capabilities (NULL,
-                                                                                  _("mcen_me_editor_selectrecipients"),
-                                                                                  OSSO_ABOOK_CAPS_EMAIL, 
+                                                                                  _AB("addr_ti_dia_select_contacts"),
+                                                                                  OSSO_ABOOK_CAPS_EMAIL,
                                                                                   OSSO_ABOOK_CONTACT_ORDER_NAME);
                osso_abook_contact_chooser_set_model (OSSO_ABOOK_CONTACT_CHOOSER (contact_dialog),
                                                      contact_model);