Source


Description:

[ CCode ( has_construct_function = false ) ]
public Source (DBusObject? dbus_object, MainContext? main_context) throws Error

Creates a new Source instance.

The changed signal will be emitted from main_context if given, or else from the thread-default MainContext at the time this function is called.

The only time the function should be called outside of SourceRegistry is to create a so-called "scratch" Source for editing in a Properties window or an account setup assistant.

FIXME: Elaborate on scratch sources.

Parameters:

dbus_object

a DBusObject or null

main_context

a MainContext or null

Returns:

a new Source, or null on error