Support for Gnome 3.10

This was already discussed in #2 but it seems it was never implemented.

This was tested on Gnome 3.10 and seems to work. Older versions should stay compatible as well.