list_sources


Description:

public List<Source> list_sources (string? extension_name)

Returns a list of registered sources, sorted by display name.

If extension_name is given, restrict the list to sources having that extension name.

The sources returned in the list are referenced for thread-safety. They must each be unreferenced with unref when finished with them. Free the returned list itself with g_list_free.

An easy way to free the list properly in one step is as follows:

	g_list_free_full (list, g_object_unref);

Parameters:

this

an SourceRegistry

extension_name

an extension name, or null

Returns:

a sorted list of sources




2022 vala-language.org