get_info_widget


Description:

public virtual unowned Widget? get_info_widget (SourceCompletionProposal proposal)

Get a customized info widget to show extra information of a proposal.

This allows for customized widgets on a proposal basis, although in general providers will have the same custom widget for all their proposals and proposal can be ignored. The implementation of this function is optional.

If this function is not implemented, the default widget is a Label. The return value of get_info is used as the content of the Label.

Note:

If implemented, update_info must also be implemented.

Parameters:

this

a SourceCompletionProvider.

proposal

a currently selected SourceCompletionProposal.

Returns:

a custom Widget to show extra information about proposal, or null if the provider does not have a special info widget.