[Bug 27874] TpBaseClient Approver support

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 7 14:31:20 CEST 2010


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

--- Comment #12 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> 2010-05-07 05:31:19 PDT ---
(In reply to comment #11)
> Trivia seen when reading through the combined diff (you can consider the fixes
> for these to have been pre-reviewed):
> 
> > +++ b/telepathy-glib/add-dispatch-operation-context-internal.h
> 
> Copyright date should be 2010 like the others, or 2009-2010 if it's derived
> from code from 2009

Fixed.

> > +  void (*chain_up) (GObject *) =
> > +    ((GObjectClass *) \
> > +      tp_add_dispatch_operation_context_parent_class)->constructed;
> 
> You don't need that backslash, line-joining is generally only relevant in macro
> definitions

removed.

> > + * Implementation can then use tp_channel_dispatch_operation_handle_with_async()
> > + * or tp_channel_dispatch_operation_claim_async() to approve or disapprove the
> > + * channels.
> 
> "The implementation can then use
> tp_channel_dispatch_operation_handle_with_async() to approve handling of the
> channels, or tp_channel_dispatch_operation_claim_async() to take responsibility
> for handling or closing them", perhaps?

changed.

> > and may only be called on objects that implement
> > + * @add_dispatch_operation.
> 
> "and may only be called on objects whose class has called
> tp_base_client_implement_add_dispatch_operation()" perhaps?

done. I changed the Observer API as well to stay coherent.

> > +  if (cls->priv->add_dispatch_operation_impl == NULL)
> > +    {
> > +      DEBUG ("class %s does not implement AddDispatchOperation",
> > +          G_OBJECT_TYPE_NAME (self));
> 
> CRITICAL()? This isn't meant to be reachable, AFAICS.

Wouldn't that make the client remotely crashable by calling a D-Bus method it
doesn't implement?

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



More information about the telepathy-bugs mailing list