Fix spacing and alignment in preferences dialog

And replace deprecated widgets

https://bugzilla.gnome.org/show_bug.cgi?id=720057
Make prefs dialog modal

https://bugzilla.gnome.org/show_bug.cgi?id=720057