Fixes NB#96025, enable multiselection in selectcontact dialog
authorSergio Villar Senin <svillar@igalia.com>
Wed, 17 Dec 2008 10:11:31 +0000 (10:11 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 17 Dec 2008 10:11:31 +0000 (10:11 +0000)
pmo-trunk-r6893

src/hildon2/modest-address-book.c

index 8ad0df8..6406bc4 100644 (file)
@@ -206,6 +206,9 @@ modest_address_book_select_addresses (ModestRecptEditor *recpt_editor)
                                                                            _("mcen_me_editor_selectrecipients"),
                                                                            OSSO_ABOOK_CAPS_EMAIL, 
                                                                            OSSO_ABOOK_CONTACT_ORDER_NAME);
                                                                            _("mcen_me_editor_selectrecipients"),
                                                                            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));
 
        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));
@@ -898,6 +901,7 @@ select_contacts_for_name_dialog (const gchar *name)
                                                                                   _("mcen_me_editor_selectrecipients"),
                                                                                   OSSO_ABOOK_CAPS_EMAIL, 
                                                                                   OSSO_ABOOK_CONTACT_ORDER_NAME);
                                                                                   _("mcen_me_editor_selectrecipients"),
                                                                                   OSSO_ABOOK_CAPS_EMAIL, 
                                                                                   OSSO_ABOOK_CONTACT_ORDER_NAME);
+
                osso_abook_contact_chooser_set_model (OSSO_ABOOK_CONTACT_CHOOSER (contact_dialog),
                                                      contact_model);
 
                osso_abook_contact_chooser_set_model (OSSO_ABOOK_CONTACT_CHOOSER (contact_dialog),
                                                      contact_model);