~cyphermox/ubuntu/raring/evolution-data-server/3.6.4

« back to all changes in this revision

Viewing changes to addressbook/libedata-book/e-book-backend.c

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2013-03-19 23:22:37 UTC
  • mfrom: (1.1.108)
  • Revision ID: mathieu-tl@ubuntu.com-20130319232237-b0ujp4pyhl8a9qih
* New upstream release.
  - Crash in Contacts calendar backend (LP: #1039594)
  - Empty name selector dialog on open (LP: #1072442)

Show diffs side-by-side

added added

removed removed

Lines of Context:
859
859
                                                   gpointer user_data),
860
860
                             gpointer user_data)
861
861
{
862
 
        const GSList *views;
 
862
        GSList *views_list, *viter;
863
863
        EDataBookView *view;
864
864
        gboolean stop = FALSE;
865
865
 
867
867
        g_return_if_fail (callback != NULL);
868
868
 
869
869
        g_mutex_lock (backend->priv->views_mutex);
 
870
        views_list = g_slist_copy (backend->priv->views);
 
871
        g_slist_foreach (views_list, (GFunc) g_object_ref, NULL);
 
872
        g_mutex_unlock (backend->priv->views_mutex);
870
873
 
871
 
        for (views = backend->priv->views; views && !stop; views = views->next) {
872
 
                view = E_DATA_BOOK_VIEW (views->data);
 
874
        for (viter = views_list; viter && !stop; viter = viter->next) {
 
875
                view = E_DATA_BOOK_VIEW (viter->data);
873
876
                stop = !callback (view, user_data);
874
877
        }
875
878
 
876
 
        g_mutex_unlock (backend->priv->views_mutex);
 
879
        g_slist_free_full (views_list, g_object_unref);
877
880
}
878
881
 
879
882
/**