insert_source


Description:

public void insert_source (int position, string id, Icon icon, string label)

Inserts a new message source into the section representing this.

Equivalent to calling insert_source_with_time with the current time.

It is an error to insert a source with an id which already exists. Use has_source to find out whether there is such a source.

Parameters:

this

a App

position

the position at which to insert the source

id

a unique identifier for the source to be added

icon

the icon associated with the source

label

a user-visible string best describing the source