un-triple-buffer fastmeter (not finished), fix mixer strip name button, comment edito...
[ardour.git] / libs / gtkmm2ext / gtk_ui.cc
index 2da27872a948c1cace83da6b93c8b7d8f54dd347..10ca908773b6a07c7383419163b90e5588cacc4e 100644 (file)
@@ -227,10 +227,23 @@ UI::quit ()
        request (Quit);
 }
 
+static bool idle_quit ()
+{
+       cerr << "idle quit, level = " << Main::level() << endl;
+       Main::quit ();
+       return true;
+}
+
 void
 UI::do_quit ()
 {
-       Main::quit();
+       Glib::signal_idle().connect (sigc::ptr_fun (idle_quit));
+}
+
+int
+UI::set_quit_context()
+{
+       return setjmp (quit_context);
 }
 
 void