GNOME Bugzilla – Bug 756098
Should use g_icon_serialize() to pass icons to shell in search provider
Last modified: 2015-10-07 15:11:26 UTC
While investigating a downstream crash report from the gnome-contacts search provider, I found that the provider was passing the avatar icons to the shell using g_icon_to_string(). The new way is to use g_icon_serialize() instead. This avoids the crash (which seems to be caused by a Vala bug with the g_variant_new_from_data() binding, described in bug 756090) and simplifies the code.
Created attachment 312692 [details] [review] use g_icon_serialize()
Created attachment 312693 [details] [review] remove obsolete code
Review of attachment 312692 [details] [review]: LGTM, push
Review of attachment 312693 [details] [review]: LGTM
(In reply to David King from comment #0) > While investigating a downstream crash report from the gnome-contacts search > provider, I found that the provider was passing the avatar icons to the > shell using g_icon_to_string(). The new way is to use g_icon_serialize() > instead. This avoids the crash (which seems to be caused by a Vala bug with > the g_variant_new_from_data() binding, described in bug 756090) and > simplifies the code. Thxs for your work on this.
Review of attachment 312692 [details] [review]: Pushed to master as commit 97125eb29dba7cf1f9c844da1f3e3531c31de5cd.
Review of attachment 312693 [details] [review]: Pushed to master as commit 092bb89b789f113a3aeee03c268da08fbec3ede0.
Also pushed to gnome-3-16. Thanks for the reviews!