Constructor
PurpleBadgenew
unstable since: 3.0
Declaration [src]
PurpleBadge*
purple_badge_new (
  const char* id,
  int priority,
  const char* icon_name,
  const char* mnemonic
)
      Parameters
id- 
            
Type:
const char*The id.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.  priority- 
            
Type:
intThe priority.
 icon_name- 
            
Type:
const char*The icon name.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.  mnemonic- 
            
Type:
const char*A character as a mnemonic.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.  
Return value
Type: PurpleBadge
The new instance.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |