On terminal:
# sudo apt-get install desktop-webmail
Then:
# gnome-default-applications-properties
And change "Mail Reader" to Desktop-Webmail.
Then click on a mailto link and choose gmail.
That's it.
Found here: http://superuser.com/questions/32493/how-do-i-make-mailto-links-open-gmail-in-ubuntu