gtksource.global

Undocumented in source.

Members

Functions

checkVersion
bool checkVersion(uint major, uint minor, uint micro)

Like GTK_SOURCE_CHECK_VERSION, but the check for gtk_source_check_version is at runtime instead of compile time. This is useful for compiling against older versions of GtkSourceView, but using features from newer versions.

finalize
void finalize()

Free the resources allocated by GtkSourceView. For example it unrefs the singleton objects.

getMajorVersion
uint getMajorVersion()

Returns the major version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 3.)

getMicroVersion
uint getMicroVersion()

Returns the micro version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 0.)

getMinorVersion
uint getMinorVersion()

Returns the minor version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 20.)

init_
void init_()

Initializes the GtkSourceView library (e.g. for the internationalization).

schedulerAdd
size_t schedulerAdd(gtksource.types.SchedulerCallback callback)

Simplified version of funcscheduler_add_full.

schedulerAddFull
size_t schedulerAddFull(gtksource.types.SchedulerCallback callback)

Adds a new callback that will be executed as time permits on the main thread.

schedulerRemove
void schedulerRemove(size_t handlerId)

Removes a scheduler callback previously registered with funcscheduler_add or funcscheduler_add_full.

utilsEscapeSearchText
string utilsEscapeSearchText(string text)

Use this function to escape the following characters: \n, \r, \t and \.

utilsUnescapeSearchText
string utilsUnescapeSearchText(string text)

Use this function before gtksource.search_settings.SearchSettings.setSearchText, to unescape the following sequences of characters: \n, \r, \t and \\. The purpose is to easily write those characters in a search entry.