Final fix for #266

-Fix implemented using setIcon() as setIconAttribute() is not valid for
API less than 11