tweak Stateful/StatefulDiffCommand changes so that SessionObject's actually get a...
[ardour.git] / gtk2_ardour / io_selector.cc
index e038035a95198e26e2ad15d8b471bd2b35ece463..615ce9d69fae61c2988f027fe31fd0034916aa22 100644 (file)
@@ -162,7 +162,9 @@ IOSelectorWindow::IOSelectorWindow (ARDOUR::Session* session, boost::shared_ptr<
        set_name ("IOSelectorWindow2");
        set_title (_("I/O selector"));
 
-       add (_selector);
+       Gtk::Alignment* alignment = manage(new Gtk::Alignment(0.5, 0.5, 0.0, 0.0));
+       alignment->add (_selector);
+       add (*alignment);
 
        set_position (Gtk::WIN_POS_MOUSE);
 
@@ -272,7 +274,7 @@ PortInsertWindow::PortInsertWindow (ARDOUR::Session* sess, boost::shared_ptr<ARD
 
        signal_delete_event().connect (sigc::mem_fun (*this, &PortInsertWindow::wm_delete), false);
 
-       pi->GoingAway.connect (going_away_connection, boost::bind (&PortInsertWindow::plugin_going_away, this));
+       pi->DropReferences.connect (going_away_connection, boost::bind (&PortInsertWindow::plugin_going_away, this), gui_context());
 }
 
 bool