list_enabled


Description:

[ Version ( since = "3.10" ) ]
public List<Source> list_enabled (string? extension_name)

Similar to list_sources, but returns only enabled sources according to check_enabled.

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