Tree.setAttribute

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

Parameters

attribute string

attribute name

value gobject.value.Value

a #GValue, or null

destroy glib.types.DestroyNotify

a function to be called when attribute is not needed anymore, or null