Item.setAttributesSync

Set the attributes of this item.

The @attributes are a mapping of string keys to string values. Attributes are used to search for items. Attributes are not stored or transferred securely by the secret service.

This function may block indefinitely. Use the asynchronous version in user interface threads.

class Item
bool
setAttributesSync
(,
HashTable attributes
,
Cancellable cancellable
)

Parameters

schema Schema

the schema for the attributes

attributes HashTable

a new set of attributes

cancellable Cancellable

optional cancellation object

Return Value

Type: bool

whether the change was successful or not

Throws

GException on failure.

Meta