Virtual Method
GtkSourceCompletionProviderlist_alternates
Declaration
GPtrArray*
list_alternates (
GtkSourceCompletionProvider* self,
GtkSourceCompletionContext* context,
GtkSourceCompletionProposal* proposal
)
Description
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.
Parameters
context |
GtkSourceCompletionContext |
A |
|
The data is owned by the caller of the function. | |
proposal |
GtkSourceCompletionProposal |
A |
|
The data is owned by the caller of the function. |
Return value
Returns: | An array of GtkSourceCompletionProposal |
a |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL . |