Changes to be compatible with Gnome 3.10

I've done this changes and they worked for me in Fedora 20 with Gnome 3.10. This could be helpful to others.