GtkSourceCompletionWords

GtkSourceCompletionWords — A GtkSourceCompletionProvider for the completion of words

Functions

Types and Values

Includes

#include <gtksourceview/completion-providers/words/gtksourcecompletionwords.h>

Description

The GtkSourceCompletionWords is an example of an implementation of the GtkSourceCompletionProvider interface. The proposals are words appearing in the registered GtkTextBuffers.

Functions

gtk_source_completion_words_new ()

GtkSourceCompletionWords *
gtk_source_completion_words_new (const gchar *name,
                                 GdkPixbuf *icon);

Parameters

name

The name for the provider.

[allow-none]

icon

A specific icon for the provider.

[allow-none]

Returns

a new GtkSourceCompletionWords provider


gtk_source_completion_words_register ()

void
gtk_source_completion_words_register (GtkSourceCompletionWords *words,
                                      GtkTextBuffer *buffer);

Registers buffer in the words provider.

Parameters

words

a GtkSourceCompletionWords

 

buffer

a GtkTextBuffer

 

gtk_source_completion_words_unregister ()

void
gtk_source_completion_words_unregister
                               (GtkSourceCompletionWords *words,
                                GtkTextBuffer *buffer);

Unregisters buffer from the words provider.

Parameters

words

a GtkSourceCompletionWords

 

buffer

a GtkTextBuffer

 

Types and Values

struct GtkSourceCompletionWords

struct GtkSourceCompletionWords {
	GObject parent;

	GtkSourceCompletionWordsPrivate *priv;
};