Tree.setAttribute

void setAttribute(string attribute, gobject.value.Value value, glib.types.DestroyNotify destroy)

Sets an attribute to tree, which will be accessible to any node in it.

Parameters

attributeattribute name
valuea #GValue, or null
destroya function to be called when attribute is not needed anymore, or null