Bug 45564 - use TpBaseChannel more
Summary: use TpBaseChannel more
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: salut (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.freedesktop.org/~jonny/te...
Whiteboard: review+
Keywords: patch
Depends on:
Blocks:
 
Reported: 2012-02-02 13:02 UTC by Jonny Lamb
Modified: 2012-02-29 12:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jonny Lamb 2012-02-02 13:02:05 UTC
I found that Salut doesn't use TpBaseChannel once. The horror.

I "fixed" a few channel objects. I didn't touch the tube{,s} stuff because it gets hairy there as those objects handle both TargetHandleType=CONTACT and TargetHandleType=ROOM which TpBaseChannel doesn't really like, so we need to split out the MUC version into another tiny base class.

I didn't bother as we're going to remove Tubes soon anyway, and well, blah blah blah.
Comment 1 Simon McVittie 2012-02-29 04:08:28 UTC
IM ++
Comment 2 Simon McVittie 2012-02-29 04:15:31 UTC
MUC ++ with or without fixing these trivia:

> + g_object_get (base_conn, "self", &(priv->self), NULL);

Pre-existing nit: I'd have preferred one property-pair per line, but whatever.

> + g_object_get (G_OBJECT (conn), "contact-manager",
> &contact_manager, NULL);

Likewise here
Comment 3 Simon McVittie 2012-02-29 04:18:32 UTC
FT ++
Comment 4 Simon McVittie 2012-02-29 04:21:33 UTC
RoomList ++, so, all ++ with optional trivia in Comment #2.

If you wanted to do the Tube channels too, as you did for Gabble in Bug #46502, I wouldn't say no.
Comment 5 Jonny Lamb 2012-02-29 12:49:44 UTC
(In reply to comment #2)
> MUC ++ with or without fixing these trivia:
> 
> > + g_object_get (base_conn, "self", &(priv->self), NULL);
> 
> Pre-existing nit: I'd have preferred one property-pair per line, but whatever.
> 
> > + g_object_get (G_OBJECT (conn), "contact-manager",
> > &contact_manager, NULL);
> 
> Likewise here

Fixed these.

(In reply to comment #4)
> RoomList ++, so, all ++ with optional trivia in Comment #2.
> 
> If you wanted to do the Tube channels too, as you did for Gabble in Bug #46502,
> I wouldn't say no.

Some other day.

Merged, thanks for the review!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.