SourceCompletion.start

Starts a new completion with the specified #GtkSourceCompletionContext and a list of potential candidate providers for completion.

It can be convenient for showing a completion on-the-fly, without the need to add or remove providers to the #GtkSourceCompletion.

Another solution is to add providers with gtk_source_completion_add_provider(), and implement gtk_source_completion_provider_match() for each provider.

class SourceCompletion
bool
start

Parameters

providers ListG

a list of #GtkSourceCompletionProvider, or %NULL.

context SourceCompletionContext

The #GtkSourceCompletionContext with which to start the completion.

Return Value

Type: bool

%TRUE if it was possible to the show completion window.

Meta