GtkSource.Annotations

g GObject.Object GObject.Object GtkSource.Annotations GtkSource.Annotations GObject.Object->GtkSource.Annotations

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

add_provider (provider)

remove_provider (provider)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

changed

Fields

Inherited:

GObject.Object (1)

Class Details

class GtkSource.Annotations(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GtkSource.AnnotationsClass

Use this object to manage [class`Annotation`]s. Each [class`View`] has a single annotation manager and it is guaranteed to be the same for the lifetime of [class`View`].

Add [class`AnnotationProvider`]s with [method`Annotations`.add_provider] to display all the annotations added to each [class`AnnotationProvider`].

New in version 5.18.

add_provider(provider)
Parameters:

provider (GtkSource.AnnotationProvider) – a GtkSource.AnnotationProvider.

Adds a new annotation provider.

remove_provider(provider)
Parameters:

provider (GtkSource.AnnotationProvider) – a GtkSource.AnnotationProvider.

Returns:

True if the provider was found and removed

Return type:

bool

Removes a provider.

Signal Details

GtkSource.Annotations.signals.changed(annotations)
Signal Name:

changed

Flags:

RUN_LAST

Parameters:

annotations (GtkSource.Annotations) – The object which received the signal