13
0

debugging stuff for IO Selector

git-svn-id: svn://localhost/ardour2/trunk@1112 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2006-11-12 00:06:21 +00:00
parent 10d70bd8a9
commit 52600a05e7
2 changed files with 10 additions and 1 deletions

View File

@ -285,7 +285,12 @@ IOSelector::rescan ()
gint current_page;
vector<string> rowdata;
page_selection_connection.disconnect ();
current_page = notebook.get_current_page ();
cerr << "clear notebook\n";
pages.clear ();
/* get relevant current JACK ports */
@ -293,6 +298,7 @@ IOSelector::rescan ()
ports = session.engine().get_ports ("", JACK_DEFAULT_AUDIO_TYPE, for_input ? JackPortIsOutput : JackPortIsInput);
if (ports == 0) {
cerr << "no ports\n";
return;
}
@ -358,8 +364,10 @@ IOSelector::rescan ()
pages.push_back (TabElem (*client_box, *tab_label));
}
cerr << "notebook should have " << portmap.size() << " pages\n";
notebook.set_current_page (current_page);
notebook.signal_show().connect (bind (mem_fun (notebook, &Notebook::set_current_page), current_page));
page_selection_connection = notebook.signal_show().connect (bind (mem_fun (notebook, &Notebook::set_current_page), current_page));
selector_box.show_all ();
}

View File

@ -72,6 +72,7 @@ class IOSelector : public Gtk::VBox {
boost::shared_ptr<ARDOUR::IO> io;
bool for_input;
ARDOUR::Port *selected_port;
sigc::connection page_selection_connection;
Gtk::VBox main_box;
Gtk::HBox port_and_selector_box;