Summary: | Support ContactBlocking in TpBaseContactList | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Will Thompson <will> |
Component: | tp-glib | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | danielle, gkiagia |
Version: | unspecified | Keywords: | patch |
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.collabora.co.uk/git/user/wjt/telepathy-glib.git/log/?h=blocking | ||
Whiteboard: | review+ | ||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 35341 |
Description
Will Thompson
2011-03-15 06:19:28 UTC
I have finished this branch! Pretty good. Minor points follow... + /* Sometimes I think we should either make our method names less + * verbose, or relax our 80-column limit. + */ Probably not useful to include? - g_return_if_fail (iface->block_contacts_async != NULL); + g_return_if_fail (iface->block_contacts_async != NULL || + iface->block_contacts_with_abuse_async != NULL); XOR perhaps? + if (iface->block_contacts_with_abuse_async != NULL) + g_value_set_uint (value, TP_CONTACT_BLOCKING_CAPABILITY_CAN_REPORT_ABUSIVE); + else + g_value_set_uint (value, 0); +} Not expandable. Think this would be better: if (...) flags |= CAN_REPORT_ABUSIVE; g_value_set_uint (value, flags); I have pushed three patches to my branch which address your concerns! Complete with a free bitwise XOR. I like it. Merged! Will be in 0.15.1. |
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.