Improve sensitization of buttons in the advanced options
[ardour.git] / gtk2_ardour / global_port_matrix.cc
index f4803f156ba201fe6f9c8c19f57de8dbb2158ed9..d7499904639e37d9091597dcbb765cb8e2fa5d8b 100644 (file)
@@ -43,7 +43,7 @@ void
 GlobalPortMatrix::setup_ports (int dim)
 {
        _ports[dim].suspend_signals ();
-       _ports[dim].gather (_session, type(), dim == IN, false);
+       _ports[dim].gather (_session, type(), dim == IN, false, show_only_bundles ());
        _ports[dim].resume_signals ();
 }
 
@@ -160,6 +160,8 @@ GlobalPortMatrixWindow::GlobalPortMatrixWindow (Session* s, DataType t)
                break;
        }
 
+       signal_key_press_event().connect (sigc::mem_fun (_port_matrix, &PortMatrix::key_press));
+
        add (_port_matrix);
        _port_matrix.show ();
 }