Function

Pidgincreate_icon_from_protocol

Declaration [src]

GdkPixbuf*
pidgin_create_icon_from_protocol (
  PurpleProtocol* protocol,
  PidginProtocolIconSize size,
  PurpleAccount* account
)

Description [src]

Returns the base image to represent protocol based on the currently selected theme. If account is not NULL then the returned icon will represent the account.

Available since:3.0.0

Parameters

protocol PurpleProtocol
 

The PurpleProtocol instance.

 The data is owned by the caller of the function.
size PidginProtocolIconSize
 

The size of the icon to return.

account PurpleAccount
 

An optional PurpleAccount to use.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: GdkPixbuf
 

A newly-created pixbuf with a reference count of 1, or NULL if any of several error conditions occurred: the file could not be opened, there was no loader for the file’s format, there was not enough memory to allocate the image buffer, or the image file contained invalid data.

 The caller of the function takes ownership of the data, and is responsible for freeing it.