~people-project/people-core/use-core-async

« back to all changes in this revision

Viewing changes to people/contact-manager.vala

  • Committer: Ali Sabil
  • Date: 2009-01-31 20:46:43 UTC
  • mto: This revision was merged to the branch mainline in revision 351.
  • Revision ID: ali.sabil@gmail.com-20090131204643-2iw68gk42xetihvk
- Replaced the People.Utils.BiMap usage with the implementation from libcore

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
 
89
89
                public AsyncOperation<People.Contact> request_contact (Backend.ContactSource source,
90
90
                                Backend.Contact contact) {
91
 
                        string source_id = address_book.sources.get_x (source);
 
91
                        string source_id = address_book.sources.inverse ().get (source);
92
92
                        string full_contact_id = "%s:%s".printf (source_id, contact.id);
93
93
                        string all_full_contact_id = get_all_full_contact_id (full_contact_id);
94
94
 
161
161
                                                op = new AsyncOperation<Backend.Contact> ();
162
162
                                                op.completed_with_result (contact);
163
163
                                        } else {
164
 
                                                op = address_book.sources.get_y (ids[0]).request_contact (ids[1]);
 
164
                                                op = address_book.sources.get (ids[0]).request_contact (ids[1]);
165
165
                                        }
166
166
                                        ops.add (op);
167
167
                                }