summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_ui.cc
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2006-05-07 17:17:38 +0000
committerTaybin Rutkin <taybin@taybin.com>2006-05-07 17:17:38 +0000
commitc67a576d611759154976ee19b8faf78583474f97 (patch)
tree096af5a51658aba7ab3b42bf88466970c621ed7c /gtk2_ardour/sfdb_ui.cc
parentc091b877cfe1937d138b47638e2dcf7f5cbf84e5 (diff)
Improved sfdb API.
Eliminated some warnings on Darwin. Added libxslt to scons. git-svn-id: svn://localhost/trunk/ardour2@494 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r--gtk2_ardour/sfdb_ui.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc
index 839f78598f..a8b2510cf5 100644
--- a/gtk2_ardour/sfdb_ui.cc
+++ b/gtk2_ardour/sfdb_ui.cc
@@ -287,7 +287,7 @@ SoundFileBox::field_selected ()
}
}
-SoundFileBrowser::SoundFileBrowser (string title)
+SoundFileBrowser::SoundFileBrowser (string title, ARDOUR::Session* s)
: ArdourDialog (title, false),
chooser (Gtk::FILE_CHOOSER_ACTION_OPEN)
{
@@ -296,6 +296,8 @@ SoundFileBrowser::SoundFileBrowser (string title)
chooser.set_select_multiple (true);
chooser.signal_update_preview().connect(mem_fun(*this, &SoundFileBrowser::update_preview));
+
+ set_session (s);
}
void
@@ -310,9 +312,9 @@ SoundFileBrowser::update_preview ()
chooser.set_preview_widget_active(preview.setup_labels(chooser.get_filename()));
}
-SoundFileChooser::SoundFileChooser (string title)
+SoundFileChooser::SoundFileChooser (string title, ARDOUR::Session* s)
:
- SoundFileBrowser(title)
+ SoundFileBrowser(title, s)
{
add_button (Gtk::Stock::OPEN, Gtk::RESPONSE_OK);
add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
@@ -328,8 +330,8 @@ static const char *import_mode_strings[] = {
vector<string> SoundFileOmega::mode_strings;
-SoundFileOmega::SoundFileOmega (string title)
- : SoundFileBrowser (title),
+SoundFileOmega::SoundFileOmega (string title, ARDOUR::Session* s)
+ : SoundFileBrowser (title, s),
split_check (_("Split Channels"))
{
if (mode_strings.empty()) {