Fix drag and drop bug for Gtk 3

It should work with almost the same diff.
If there is anything wrong, feel free to tell me. :-)