The reference being returned is a 'floating' reference, so if you invoke [gtksource.completion.Completion.start] with this context you don't need to unref it.
Completion.createContext
gtksource.completion_context.CompletionContext createContext(gtk.text_iter.TextIter position = null)Create a new #GtkSourceCompletionContext for completion. The position where the completion occurs can be specified by position. If position is null, the current cursor position will be used.
Parameters
position | a #GtkTextIter, or null. |
Returns
a new #GtkSourceCompletionContext.