[ 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);
this | |
extension_name |
an extension name, or |
a sorted list of sources |