Top | ![]() |
![]() |
![]() |
![]() |
GtkSourceCompletionWordsGtkSourceCompletionWords — A GtkSourceCompletionProvider for the completion of words |
guint | minimum-word-size | Read / Write / Construct |
int | priority | Read / Write / Construct |
guint | proposals-batch-size | Read / Write / Construct |
guint | scan-batch-size | Read / Write / Construct |
char * | title | Read / Write / Construct |
The GtkSourceCompletionWords is an example of an implementation of the GtkSourceCompletionProvider interface. The proposals are words appearing in the registered GtkTextBuffers.
GtkSourceCompletionWords *
gtk_source_completion_words_new (const gchar *title
);
void gtk_source_completion_words_register (GtkSourceCompletionWords *words
,GtkTextBuffer *buffer
);
Registers buffer
in the words
provider.
void gtk_source_completion_words_unregister (GtkSourceCompletionWords *words
,GtkTextBuffer *buffer
);
Unregisters buffer
from the words
provider.
“minimum-word-size”
property “minimum-word-size” guint
The minimum word size to complete.
Owner: GtkSourceCompletionWords
Flags: Read / Write / Construct
Allowed values: >= 2
Default value: 2
“priority”
property “priority” int
Provider priority.
Owner: GtkSourceCompletionWords
Flags: Read / Write / Construct
Default value: 0
“proposals-batch-size”
property “proposals-batch-size” guint
Number of proposals added in one batch.
Owner: GtkSourceCompletionWords
Flags: Read / Write / Construct
Allowed values: >= 1
Default value: 300
“scan-batch-size”
property “scan-batch-size” guint
Number of lines scanned in one batch.
Owner: GtkSourceCompletionWords
Flags: Read / Write / Construct
Allowed values: >= 1
Default value: 50