Bug 55095

Summary: Provide GVariant-based access to TpContact:location
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: tp-glibAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 30422    
Attachments: contacts test: correct comparison of locations
tp_contact_dup_location, TpContact:location-vardict: add

Description Simon McVittie 2012-09-19 14:33:12 UTC
Clone of #30422.
Comment 1 Simon McVittie 2012-09-19 14:33:52 UTC
Created attachment 67386 [details] [review]
contacts test: correct comparison of locations

The values are GValues, not strings.

This only appeared to work by chance: struct _GValue starts with a GType,
and G_TYPE_STRING is '@', so on little-endian platforms interpreting
a GValue as a string gives { '@', 0, 0, 0 } = "@" and on big-endian
platforms it gives  { 0, 0, 0, '@' } = "".
Comment 2 Simon McVittie 2012-09-19 14:34:13 UTC
Created attachment 67387 [details] [review]
tp_contact_dup_location, TpContact:location-vardict:  add
Comment 3 Guillaume Desmottes 2012-09-26 11:28:13 UTC
Comment on attachment 67386 [details] [review]
contacts test: correct comparison of locations

Review of attachment 67386 [details] [review]:
-----------------------------------------------------------------

funny :) ++
Comment 4 Guillaume Desmottes 2012-09-26 11:29:05 UTC
Comment on attachment 67387 [details] [review]
tp_contact_dup_location, TpContact:location-vardict:  add

Review of attachment 67387 [details] [review]:
-----------------------------------------------------------------

++
Comment 5 Guillaume Desmottes 2012-09-26 11:49:57 UTC
Merged to master for 0.19.10 (or 0.20.0 depending on which one we release).

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.