Compare two attributes.
Useful with <code>GHashTable</code>.
first attribute to compare
second attribute to compare
true if the attributes are equal.