List changeName

From TrillWiki

Jump to: navigation, search

This is generated whenever the user inline edits a particular list entry.

Compatibility: 1.0 and higher

Contents

Syntax

callback(int window_id, char *icontrol, "list_changeName", char *text, void *userData);

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

List changeName utilitizes the NONE structure.

There is no structure used for this function or notification. For functions, the parameter passed to plugin_send should be a NULL. For notifications, the 'data' field may still contain a parameter, but it will not be a structure; if so, it will be detailed below.



text
The text the list entry is being changed to.


Return Value

Return 1 if the rename should take place, 0 if not.

Remarks

The edit_string is used for editing. If you have a list entry that uses a different edit_string, you will probably wish to return 0 so that the rename does not take place and call listUpdateText within this callback.


See also: listUpdateText