Item.setAttributes

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 returns immediately and completes asynchronously.

class Item
void
setAttributes
(,
HashTable attributes
,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

schema Schema

the schema for the attributes

attributes HashTable

a new set of attributes

cancellable Cancellable

optional cancellation object

callback GAsyncReadyCallback

called when the asynchronous operation completes

userData void*

data to pass to the callback

Meta