Gck.Object.prototype.set_template

function set_template(attr_type: Number(gulong), attrs: Gck.Attributes, cancellable: Gio.Cancellable): Boolean {
    // Gjs wrapper for gck_object_set_template()
}
  

Set an attribute template on the object. The attr_type must be for an attribute which contains a template.

If the attrs Gck.Attributes is floating, it is consumed.

This call may block for an indefinite period.

attr_type

The attribute template type.

attrs

The attribute template.

cancellable

Optional cancellation object, or NULL.

Returns

TRUE if the operation succeeded.