* Bug 662433 — AbstractFieldDetails.equal() is ambiguous about checking
parameters.
* Bug 660908 — Add favourites support to EDS backend
+* Bug 662770 — ContactPhotos are ignored when mime type is null
API changes:
* Add AbstractFieldDetails.id to identify instances of details
return new FileIcon (File.new_for_uri (p.get_uri ()));
case ContactPhotoType.INLINED:
- if (p.get_mime_type () == null || p.get_inlined () == null)
+ if (p.get_inlined () == null)
{
return null;
}
internal class Edsf.MemoryIcon : Object, Icon, LoadableIcon
{
private uint8[] _image_data;
- private string _image_type;
+ private string? _image_type;
/**
* Construct a new in-memory icon.
* @param image_data the binary data of the image
* @since 0.6.0
*/
- public MemoryIcon (string image_type, uint8[] image_data)
+ public MemoryIcon (string? image_type, uint8[] image_data)
{
this._image_data = image_data;
this._image_type = image_type;
*
* Basically, this is just a nul-safe version of g_str_hash(). Which is
* calculated over both the image type and image data. */
- uint hash = this._image_type.hash ();
+ uint hash = this._image_type != null ? this._image_type.hash () : 0;
for (uint i = 0; i < this._image_data.length; i++)
{