summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-11-12 00:06:21 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-11-12 00:06:21 +0000
commit52600a05e7658f79864b765560f8c11b39700199 (patch)
treed387fa9ae72bcc5ead013a2026023632776d90ca
parent10d70bd8a9ff70824fe4945dd2fef41c44a721fd (diff)
debugging stuff for IO Selector
git-svn-id: svn://localhost/ardour2/trunk@1112 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/io_selector.cc10
-rw-r--r--gtk2_ardour/io_selector.h1
2 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/io_selector.cc b/gtk2_ardour/io_selector.cc
index 4c1e94ce89..3a744ea727 100644
--- a/gtk2_ardour/io_selector.cc
+++ b/gtk2_ardour/io_selector.cc
@@ -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 ();
}
diff --git a/gtk2_ardour/io_selector.h b/gtk2_ardour/io_selector.h
index fcca7abf5c..745677bfa1 100644
--- a/gtk2_ardour/io_selector.h
+++ b/gtk2_ardour/io_selector.h
@@ -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;