X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fsearch_path_option.cc;h=92b7938eddb7771a44daa2f44f0172be8c193bd9;hb=b998b8f761aaf1b8e61633f6054a6e9aa5d6c204;hp=84b02bf57732aa2bfc9bb902c85275305b7e9650;hpb=e8e0da71a0cba9f3204fade27e324603dc71c610;p=ardour.git diff --git a/gtk2_ardour/search_path_option.cc b/gtk2_ardour/search_path_option.cc index 84b02bf577..92b7938edd 100644 --- a/gtk2_ardour/search_path_option.cc +++ b/gtk2_ardour/search_path_option.cc @@ -17,7 +17,9 @@ */ #include "pbd/strsplit.h" +#include "pbd/compose.h" #include "search_path_option.h" +#include "i18n.h" using namespace std; using namespace Gtk; @@ -38,7 +40,7 @@ SearchPathOption::SearchPathOption (const string& pathname, const string& label, hbox->pack_end (add_chooser, true, true); hbox->pack_end (*manage (new Label (_("Click to add a new location"))), false, false); hbox->show_all (); - + vbox.pack_start (path_box); vbox.pack_end (*hbox); @@ -52,7 +54,7 @@ SearchPathOption::SearchPathOption (const string& pathname, const string& label, SearchPathOption::~SearchPathOption() { - + } @@ -99,7 +101,7 @@ SearchPathOption::set_state_from_config () path_box.pack_start (session_label); split (str, dirs, ':'); - + for (vector::iterator d = dirs.begin(); d != dirs.end(); ++d) { add_path (*d); } @@ -109,7 +111,7 @@ void SearchPathOption::changed () { string str; - + for (list::iterator p = paths.begin(); p != paths.end(); ++p) { if (!str.empty()) { @@ -148,7 +150,7 @@ SearchPathOption::PathEntry::PathEntry (const std::string& path, bool removable) box.set_spacing (6); box.set_homogeneous (false); box.pack_start (entry, true, true); - + if (removable) { box.pack_start (remove_button, false, false); remove_button.show ();