Item.setLabelSync

Set the label of this item.

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

class Item
bool
setLabelSync

Parameters

label string

a new label

cancellable gio.cancellable.Cancellable

optional cancellation object

Return Value

Type: bool

whether the change was successful or not