Replace some deprecated code

First of all: I'm not very used to github, git or contributing to open source projects so I hope I did everything right.

These changes make eom compile using
make CFLAGS='-DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES'