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 throws and return false.
| this | |
| source |
an Source with changes to commit |
| cancellable |
optional Cancellable object, or null |
|
true on success, false on failure |