summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-06-07 03:23:12 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-06-07 03:23:12 +0000
commit5401db1856173c5798e6bd776302ba4980862578 (patch)
tree36863ad824c2430b1e80248d21e406f267266b87 /gtk2_ardour
parentf8a39386e7e675ad70a93ab49e1b31425de84096 (diff)
Use ARDOUR::templates_dir_name in the NewSessionDialog class
git-svn-id: svn://localhost/ardour2/trunk@1960 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/new_session_dialog.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/new_session_dialog.cc b/gtk2_ardour/new_session_dialog.cc
index 216287e682..6e01956e36 100644
--- a/gtk2_ardour/new_session_dialog.cc
+++ b/gtk2_ardour/new_session_dialog.cc
@@ -22,6 +22,7 @@
#include <ardour/recent_sessions.h>
#include <ardour/session.h>
+#include <ardour/directory_names.h>
#include <gtkmm/entry.h>
#include <gtkmm/filechooserbutton.h>
@@ -369,10 +370,8 @@ NewSessionDialog::NewSessionDialog()
path = ARDOUR::get_system_data_path();
}
- const char * const template_dir_name = X_("templates");
-
if (!path.empty()) {
- string user_template_path = path + template_dir_name;
+ string user_template_path = path + ARDOUR::templates_dir_name;
if (Glib::file_test(user_template_path, Glib::FILE_TEST_IS_DIR))
{
@@ -380,7 +379,7 @@ NewSessionDialog::NewSessionDialog()
}
}
- const std::string sys_templates_dir = ARDOUR::get_system_data_path() + template_dir_name;
+ const std::string sys_templates_dir = ARDOUR::get_system_data_path() + ARDOUR::templates_dir_name;
if (Glib::file_test(sys_templates_dir, Glib::FILE_TEST_IS_DIR))
{