Small changes for Gtkmm 3

A lot of small changes has been done to migrate the
source code to Gtkmm 3.