Bug 27881 - Should use TpSimpleObserver
Summary: Should use TpSimpleObserver
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: logger (show other bugs)
Version: git master
Hardware: Other All
: medium enhancement
Assignee: Guillaume Desmottes
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/ca...
Whiteboard:
Keywords: patch
Depends on: 27871
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-29 00:37 UTC by Guillaume Desmottes
Modified: 2010-05-31 07:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Guillaume Desmottes 2010-04-29 00:37:07 UTC
Bug #27871 adds TpSimpleObserver to tp-glib. Tp-logger should use it instead of its own Observer implementation.
Comment 1 Guillaume Desmottes 2010-05-20 03:20:33 UTC
I'm going to use TpBaseClient actually.
Comment 3 Simon McVittie 2010-05-31 05:54:36 UTC
Looks good, but I'd prefer a couple of additional changes:

> error:
> ...
> +  DEBUG ("Returning from observe channels on error condition. "
> +      "Unable to log the channel");
> +
> +  tp_observe_channels_context_accept (context);

What errors can occur? It seems more correct to use tp_observe_channels_context_fail() (in practice MC will log the error, then carry on regardless).

> +  if (tp_base_client_register (TP_BASE_CLIENT (observer), &error) == FALSE)

Don't compare booleans to TRUE and FALSE:

if (!tp_b_c_r (..., &error))
  {
    ...
  }
Comment 4 Guillaume Desmottes 2010-05-31 07:17:52 UTC
done.
Comment 5 Guillaume Desmottes 2010-05-31 07:21:45 UTC
Merged to master.


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.