commit_source_sync
Description:
This is a convenience function intended for use with graphical Source editors.
Call this function when the user is finished making changes to source
.
If source
has a DBusObject, its contents are submitted to the D-Bus
service through write_sync.
If source
does NOT have a DBusObject (implying it's a scratch
Source), its contents are submitted to the D-Bus service through either
remote_create_sync if source
is to be a
collection member, or create_sources_sync if
source
to be an independent data source.
If an error occurs, the function will set error
and return false
.
Parameters:
this | |
source |
an Source with changes to commit |
cancellable |
optional Cancellable object, or |
Returns:
|