GtkSource.CompletionWords

g GObject.GInterface GObject.GInterface GtkSource.CompletionProvider GtkSource.CompletionProvider GObject.GInterface->GtkSource.CompletionProvider GObject.Object GObject.Object GtkSource.CompletionWords GtkSource.CompletionWords GObject.Object->GtkSource.CompletionWords GtkSource.CompletionProvider->GtkSource.CompletionWords

Subclasses:

None

Methods

Inherited:

GObject.Object (37), GtkSource.CompletionProvider (13)

Structs:

GObject.ObjectClass (5)

class

new (name, icon)

register (buffer)

unregister (buffer)

Virtual Methods

Inherited:

GObject.Object (7), GtkSource.CompletionProvider (13)

Properties

Name

Type

Flags

Short Description

activation

GtkSource.CompletionActivation

r/w/c

The type of activation

icon

GdkPixbuf.Pixbuf

r/w/c

The provider icon

interactive-delay

int

r/w/c

The delay before initiating interactive completion

minimum-word-size

int

r/w/c

The minimum word size to complete

name

str

r/w/c

The provider name

priority

int

r/w/c

Provider priority

proposals-batch-size

int

r/w/c

Number of proposals added in one batch

scan-batch-size

int

r/w/c

Number of lines scanned in one batch

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class GtkSource.CompletionWords(**kwargs)
Bases:

GObject.Object, GtkSource.CompletionProvider

Abstract:

No

Structure:

GtkSource.CompletionWordsClass

classmethod new(name, icon)
Parameters:
Returns:

a new GtkSource.CompletionWords provider

Return type:

GtkSource.CompletionWords

register(buffer)
Parameters:

buffer (Gtk.TextBuffer) – a Gtk.TextBuffer

Registers buffer in the self provider.

unregister(buffer)
Parameters:

buffer (Gtk.TextBuffer) – a Gtk.TextBuffer

Unregisters buffer from the self provider.

Property Details

GtkSource.CompletionWords.props.activation
Name:

activation

Type:

GtkSource.CompletionActivation

Default Value:

GtkSource.CompletionActivation.INTERACTIVE | GtkSource.CompletionActivation.USER_REQUESTED

Flags:

READABLE, WRITABLE, CONSTRUCT

The type of activation.

New in version 3.10.

GtkSource.CompletionWords.props.icon
Name:

icon

Type:

GdkPixbuf.Pixbuf

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The provider icon

GtkSource.CompletionWords.props.interactive_delay
Name:

interactive-delay

Type:

int

Default Value:

50

Flags:

READABLE, WRITABLE, CONSTRUCT

The delay before initiating interactive completion

GtkSource.CompletionWords.props.minimum_word_size
Name:

minimum-word-size

Type:

int

Default Value:

2

Flags:

READABLE, WRITABLE, CONSTRUCT

The minimum word size to complete

GtkSource.CompletionWords.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The provider name

GtkSource.CompletionWords.props.priority
Name:

priority

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT

Provider priority

GtkSource.CompletionWords.props.proposals_batch_size
Name:

proposals-batch-size

Type:

int

Default Value:

300

Flags:

READABLE, WRITABLE, CONSTRUCT

Number of proposals added in one batch

GtkSource.CompletionWords.props.scan_batch_size
Name:

scan-batch-size

Type:

int

Default Value:

50

Flags:

READABLE, WRITABLE, CONSTRUCT

Number of lines scanned in one batch