[Bug 49372] deprecate tp_account/connection/channel_new

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 21 12:26:21 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=49372

--- Comment #4 from Xavier Claessens <xclaesse at gmail.com> 2012-05-21 03:26:21 PDT ---
(In reply to comment #3)
> (In reply to comment #0)
> > TpAccount, TpConnection and TpChannel (+subclasses) are created through the
> > factory now, to ensure uniqueness.
> > 
> > I think their _new() constructors should be deprecated
> 
> Doesn't this mean that it's impossible (or unnecessarily hard - they have to
> use g_object_new and remember which properties are mandatory) for library users
> to implement their own factories without calling deprecated methods? That seems
> undesirable.

If a library implement its own factory subclass, and override
create_connection() then it is to return a TpConnection subclass anyway. So it
will have to make its own my_connection_subclass_new() internally, just like we
have _tp_connection_new_with_factory().

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list