SourceCompletionItem.from_stock


Description:

[ CCode ( has_construct_function = false ) ]
public SourceCompletionItem.from_stock (string label, string text, string stock, string info)

Creates a new SourceCompletionItem from a stock item.

Note:

Use gtk_source_completion_item_new2 instead.

If label is null, the stock label will be used.

Parameters:

label

The item label.

text

The item text.

stock

The stock icon.

info

The item extra information.

Returns:

a new SourceCompletionItem.