diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-12-27 18:49:35 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-12-27 18:49:35 +0000 |
commit | db36cb793a8e500531e18efd967a9f6eac8183eb (patch) | |
tree | 14ab486bf10a94c5b3dd3e05fc3858ec1d3f087a /gtk2_ardour/search_path_option.cc | |
parent | fe1796fd6fbf0e340b14004f4a1cebaa1743ed30 (diff) |
fix for #5224
git-svn-id: svn://localhost/ardour2/branches/3.0@13741 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/search_path_option.cc')
-rw-r--r-- | gtk2_ardour/search_path_option.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/search_path_option.cc b/gtk2_ardour/search_path_option.cc index 4590183e6c..8a5d99a375 100644 --- a/gtk2_ardour/search_path_option.cc +++ b/gtk2_ardour/search_path_option.cc @@ -18,6 +18,8 @@ #include "pbd/strsplit.h" #include "pbd/compose.h" +#include "pbd/shortpath.h" + #include "search_path_option.h" #include "i18n.h" @@ -25,6 +27,7 @@ using namespace std; using namespace Gtk; SearchPathOption::SearchPathOption (const string& pathname, const string& label, + const string& default_path, sigc::slot<std::string> get, sigc::slot<bool, std::string> set) : Option (pathname, label) , _get (get) @@ -45,7 +48,7 @@ SearchPathOption::SearchPathOption (const string& pathname, const string& label, vbox.pack_end (*hbox); session_label.set_use_markup (true); - session_label.set_markup (string_compose ("<i>%1</i>", _("the session folder"))); + session_label.set_markup (string_compose ("<i>%1 (%2)</i>", _("the session folder"), short_path (default_path, 32))); session_label.set_alignment (0.0, 0.5); session_label.show (); |