SourceBuffer.createSourceMark

Creates a source mark in the @buffer of category @category. A source mark is a #GtkTextMark but organised into categories. Depending on the category a pixbuf can be specified that will be displayed along the line of the mark.

Like a #GtkTextMark, a #GtkSourceMark can be anonymous if the passed @name is %NULL. Also, the buffer owns the marks so you shouldn't unreference it.

Marks always have left gravity and are moved to the beginning of the line when the user deletes the line they were in.

Typical uses for a source mark are bookmarks, breakpoints, current executing instruction indication in a source file, etc..

class SourceBuffer
createSourceMark
(
string name
,
string category
,)

Parameters

name string

the name of the mark, or %NULL.

category string

a string defining the mark category.

where TextIter

location to place the mark.

Return Value

a new #GtkSourceMark, owned by the buffer.

Meta