insert_source_with_string


Description:

public void insert_source_with_string (int position, string id, Icon? icon, string label, string str)

Inserts a new message source into the section representing this and initializes it with str .

To update the string, use set_source_string.

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

str

a string associated with the source