new PBD::ControllableDescriptor class to encapsulate parsing of binding URIs and...
[ardour.git] / libs / gtkmm2ext / gtk_ui.cc
index 1f8e919af4b474135c8e66e57051d01daf7b045d..318dedd1fc450a4513ea232b61f6f845f5e04b3d 100644 (file)
@@ -80,6 +80,12 @@ UI::UI (string namestr, int *argc, char ***argv)
        */
 
        run_loop_thread = Thread::self();
+       
+       /* store "this" as the UI-for-thread of this thread, same argument
+          as for previous line.
+       */
+
+       set_event_loop_for_thread (this);
 
        /* attach our request source to the default main context */
 
@@ -353,7 +359,11 @@ UI::do_request (UIRequest* req)
                do_quit ();
 
        } else if (req->type == CallSlot) {
-
+#ifndef NDEBUG
+               if (getenv ("DEBUG_THREADED_SIGNALS")) {
+                       cerr << "call slot for " << name() << endl;
+               }
+#endif
                req->the_slot ();
 
        } else if (req->type == TouchDisplay) {