Virtual Method


Declaration [src]

list_alternates (
  GtkSourceCompletionProvider* self,
  GtkSourceCompletionContext* context,
  GtkSourceCompletionProposal* proposal

Description [src]

Providers should return a list of alternates to proposal or NULL if there are no alternates available.

This can be used by the completion view to allow the user to move laterally through similar proposals, such as overrides of methods by the same name.



Type: GtkSourceCompletionContext

A GtkSourceCompletionContext.

The data is owned by the caller of the function.

Type: GtkSourceCompletionProposal

A GtkSourceCompletionProposal.

The data is owned by the caller of the function.

Return value

Type: An array of GtkSourceCompletionProposal*

a GPtrArray of GtkSourceCompletionProposal or NULL.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.