public static void RunMainLoop () { if (mainloop == null) { mainloop = new GLib.MainLoop (); } if (!mainloop.IsRunning) { mainloop.Run (); } }