Bug 45564

Summary: use TpBaseChannel more
Product: Telepathy Reporter: Jonny Lamb <jonny.lamb>
Component: salutAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: git master   
Hardware: Other   
OS: All   
URL: http://cgit.freedesktop.org/~jonny/telepathy-salut/log/?h=cleanups
Whiteboard: review+
i915 platform: i915 features:

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.