Method

PurpleContactInfoget_avatar_for_display

unstable since: 3.0

Declaration [src]

PurpleImage*
purple_contact_info_get_avatar_for_display (
  PurpleContactInfo* info
)

Description [src]

Get the avatar that should be displayed for this contact info.

If PurpleContactInfo:person is set and its PurplePerson:avatar is set, that will be returned.

Otherwise the value of PurpleContactInfo:avatar will be returned.

Available since: 3.0

Return value

Type: PurpleImage

The avatar.

The returned data is owned by the instance.
The return value can be NULL.