[Bug 698334] Mac top-of-screen menu not working properly

Fix the delay by putting a bogus event to wake up the mainloop.
Enable running test-integration without integration

To separate integration problems from underlying Gtk problems
Clean up a couple of leaks
Reformat to Gnome coding standard