diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-04-12 03:09:25 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-04-12 03:09:25 +0000 |
commit | dca6c6d91f443d8d779dd043b2fc0020074a00af (patch) | |
tree | f5bbbbe2e242a7daf493d71fc743caf94296b596 /gtk2_ardour/sfdb_ui.cc | |
parent | bcf432184d84d53aa12cbdd2aa3176a9019cab80 (diff) |
Added tooltips to help explain various soundfilebrowser buttons.
Fixed auditioning for SoundFileChooser and SoundFileOmega.
git-svn-id: svn://localhost/trunk/ardour2@453 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index 69c8200dd5..4e6d6fb875 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -33,6 +33,7 @@ #include <ardour/audioregion.h> #include <ardour/externalsource.h> +#include "ardour_ui.h" #include "gui_thread.h" #include "prompter.h" #include "sfdb_ui.h" @@ -110,7 +111,7 @@ SoundFileBox::set_session(Session* s) { _session = s; - if (!_session) { + if (!_session) { play_btn.set_sensitive(false); } else { _session->AuditionActive.connect(mem_fun (*this, &SoundFileBox::audition_status_changed)); @@ -334,8 +335,17 @@ SoundFileOmega::SoundFileOmega (string title) mode_strings = internationalize (import_mode_strings); } - add_button (_("Embed"), ResponseEmbed); - add_button (_("Import"), ResponseImport); + ARDOUR_UI::instance()->tooltips().set_tip(split_check, + _("Create a region for each channel")); + + Gtk::Button* btn = add_button (_("Embed"), ResponseEmbed); + ARDOUR_UI::instance()->tooltips().set_tip(*btn, + _("Link to an external file")); + + btn = add_button (_("Import"), ResponseImport); + ARDOUR_UI::instance()->tooltips().set_tip(*btn, + _("Copy a file to the session folder")); + add_button (Gtk::Stock::CLOSE, Gtk::RESPONSE_CLOSE); Gtk::HBox *box = manage (new Gtk::HBox()); |