diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-02 23:54:06 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-02 23:54:06 +0000 |
commit | 67265c6d90b2a84300e99ac629f9516b4d43f07f (patch) | |
tree | 9883a6bbce4d4a422be93793169e82255458fd5c /gtk2_ardour/startup.cc | |
parent | bcab77225765a35217505ce668404ae8a8feb999 (diff) |
various fixes for moving markers, fixes a crash reported by tim blechmann and also likely #5232 and #5241
git-svn-id: svn://localhost/ardour2/branches/3.0@13754 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/startup.cc')
-rw-r--r-- | gtk2_ardour/startup.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/startup.cc b/gtk2_ardour/startup.cc index 328e06c9c0..acd26fcaaf 100644 --- a/gtk2_ardour/startup.cc +++ b/gtk2_ardour/startup.cc @@ -63,6 +63,11 @@ static string poor_mans_glob (string path) return copy; } +static void show_me (Gtk::FileChooserButton* fcb) +{ + cerr << " Current folder of " << fcb << " changed to " << fcb->get_current_folder() << endl; +} + ArdourStartup::ArdourStartup (bool require_new, const std::string& session_name, const std::string& session_path, const std::string& template_name) : _response (RESPONSE_OK) @@ -94,6 +99,8 @@ Ardour will play NO role in monitoring")) need_audio_setup = EngineControl::need_setup (); need_session_info = (session_name.empty() || require_new); + new_folder_chooser.signal_current_folder_changed().connect (sigc::bind (sigc::ptr_fun (show_me), &new_folder_chooser)); + _provided_session_name = session_name; _provided_session_path = session_path; @@ -298,6 +305,7 @@ ArdourStartup::session_folder () if (ic_new_session_button.get_active()) { std::string legal_session_folder_name = legalize_for_path (new_name_entry.get_text()); + cerr << "using NFC @ " << &new_folder_chooser << ' ' << new_folder_chooser.get_current_folder() << " file " << new_folder_chooser.get_filename() << endl; return Glib::build_filename (new_folder_chooser.get_current_folder(), legal_session_folder_name); } else if (_existing_session_chooser_used) { /* existing session chosen from file chooser */ |