more debugging of the session folder issue
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 29 Jun 2012 14:27:11 +0000 (14:27 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 29 Jun 2012 14:27:11 +0000 (14:27 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12965 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/new_session_dialog.cc

index e6e8ef11b1c6b1d9398363b66fa8db985b146cce..8340a113dde442eca2ed5312462b86e65aec77b2 100644 (file)
@@ -43,6 +43,12 @@ using namespace PBD;
 #include "i18n.h"
 #include "new_session_dialog.h"
 
+void
+showmecf (Gtk::FileChooserButton* fcb)
+{
+        cerr << "current folder changed, now " << fcb->get_current_folder() << endl;
+}
+
 NewSessionDialog::NewSessionDialog()
        : ArdourDialog ("session control")
 {
@@ -83,6 +89,8 @@ NewSessionDialog::NewSessionDialog()
        m_template = new Gtk::FileChooserButton();
        m_create_control_bus = new Gtk::CheckButton(_("Create Monitor Bus"));
        
+        m_folder->signal_current_folder_changed().connect (sigc::bind (sigc::ptr_fun (showmecf), m_folder));
+
        Gtk::Adjustment *m_control_bus_channel_count_adj = Gtk::manage(new Gtk::Adjustment(2, 0, 100, 1, 10));
        m_control_bus_channel_count = new Gtk::SpinButton(*m_control_bus_channel_count_adj, 1, 0);