Fixed crashes with Gtk+ 3.0