Is this method really necessary? The only place where it's called is on line 166 in ```generate_menu```. To me, it seems you could simply call ```Gtk.Menu()``` there.