SourceCompletion.show

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
int
show

Parameters

providers ListG

a list of GtkSourceCompletionProvider, or NULL. [element-type GtkSource.CompletionProvider][allow-none]

context SourceCompletionContext

The GtkSourceCompletionContext with which to start the completion. [transfer floating]

Return Value

Type: int

TRUE if it was possible to the show completion window.

Meta