ContactlistTooltipUnregister

From TrillWiki

Jump to: navigation, search

The contactlistTooltipUnregister function unregisters for the tooltip events that had previously been registered using contactlistTooltipRegister.

Compatibility: 2.0 and higher

Contents

Syntax

plugin_send(MYGUID, "contactlistTooltipUnregister", struct contactlist_tooltip_register_t *);

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

ContactlistTooltipUnregister utilitizes the contactlist_tooltip_register_t structure.

struct contactlist_tooltip_register_t 
 { 
 	unsigned int				struct_size; 
 
 	int					tooltip_id; 
 
 	struct contactlist_entry_t		*contact; 
 
 	ttkCallback				callback; 
 	void					*data; 
 };



tooltip_id
The ID returned from contactlistTooltipRegister.
contact
The contact to register the tooltip for. The section, medium, real_name (or uri) are required.


Return Value

Negative value on error, 0 on success.

Remarks

Make sure to call this when a plugin is stopped.


Personal tools