:right-sidebar: True Annotations =================================================================== .. currentmodule:: gi.repository.GtkSource .. versionadded:: 5.18 .. class:: Annotations(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Use this object to manage :obj:`~gi.repository.GtkSource.Annotation`\s. Each :obj:`~gi.repository.GtkSource.View` has a single annotation manager and it is guaranteed to be the same for the lifetime of :obj:`~gi.repository.GtkSource.View`\. Add :obj:`~gi.repository.GtkSource.AnnotationProvider`\s with :obj:`~gi.repository.Annotations.add_provider` to display all the annotations added to each :obj:`~gi.repository.GtkSource.AnnotationProvider`\. Methods ------- .. rst-class:: interim-class .. class:: Annotations :no-index: .. method:: add_provider(provider: ~gi.repository.GtkSource.AnnotationProvider) -> None Adds a new annotation provider. :param provider: a :obj:`~gi.repository.GtkSource.AnnotationProvider`\. .. method:: remove_provider(provider: ~gi.repository.GtkSource.AnnotationProvider) -> bool Removes a provider. :param provider: a :obj:`~gi.repository.GtkSource.AnnotationProvider`\. Signals ------- .. rst-class:: interim-class .. class:: Annotations.signals :no-index: .. method:: changed() -> None The type of the None singleton.