[ CCode ( has_construct_function = false ) ]
public SourceRegistry.sync (Cancellable? cancellable = null) throws Error
Creates a new SourceRegistry front-end for the registry D-Bus service.
If an error occurs in connecting to the D-Bus service, the function sets error
and returns null
.
Since 3.12 a singleton will be returned. No strong reference is kept internally, so it is the caller's responsibility to keep one.
cancellable |
optional Cancellable object, or |
a new SourceRegistry, or |