GNOME Bugzilla – Bug 679425
telepathy connection new deprecated
Last modified: 2012-07-05 19:33:04 UTC
Created attachment 218061 [details] [review] Port from tp_connection_new to TelepathySimpleClientFactory Since telepathy_connection_new has been deprecated I created a patch that ports folks to telepathy simple client factory.
utils.c comes from telepathy-glib, please just copy that file, it has been ported already. in backend.c, you can take the factory from priv->account_manager, no need to create a new one. See tp_tests_backend_set_up().
Note that you leak the factory in both functions.
Created attachment 218105 [details] [review] Updated patch after review. Xavier, Thanks for the quick review of the last patch. Here I've updated it as per your feedback. Do I need to unref the factory at the end of tp_tests_backend_add_account ?
(In reply to comment #3) > Thanks for the quick review of the last patch. Here I've updated it as per > your feedback. Do I need to unref the factory at the end of > tp_tests_backend_add_account ? no, tp_proxy_get_factory() does not return a ref. Your patch seems good, +1