Checks if two icons are equal.
pointer to the first Icon.
pointer to the second Icon.
true if this is equal to icon2. false otherwise.
icon2