change type of mainwindow from GtkWindow to GtkMainWindow