Sets an attribute to tree, which will be accessible to any node in it.
attribute name
a #GValue, or null
a function to be called when attribute is not needed anymore, or null
Sets an attribute to tree, which will be accessible to any node in it.