Use the helper e_data_book_view_{ref, unref} functions
authorRob Bradford <rob@linux.intel.com>
Fri, 24 Apr 2009 16:26:36 +0000 (17:26 +0100)
committerTobias Mueller <tobiasmue@gnome.org>
Fri, 15 May 2009 01:51:42 +0000 (03:51 +0200)
Fixes bug 580154.

addressbook/libedata-book/e-book-backend.c

index c03ff99..92d0af5 100644 (file)
@@ -883,9 +883,9 @@ e_book_backend_foreach_view (EBookBackend *backend,
        while (e_iterator_is_valid (iter)) {
                view = (EDataBookView*)e_iterator_get (iter);
 
-               bonobo_object_ref (view);
+               e_data_book_view_ref (view);
                callback (view, user_data);
-               bonobo_object_unref (view);
+               e_data_book_view_unref (view);
 
                e_iterator_next (iter);
        }