Use XMLNode::get/set_property API in ARDOUR::Diskstream
[ardour.git] / libs / ardour / session_configuration.cc
index 449e39d6a829462a6d6bc7f6642637c9d0fde164..3b4f4c7f9aa6eed81f9416f35fac4ef9e84380d9 100644 (file)
@@ -18,7 +18,7 @@
 */
 
 #include <glib.h>
-#include <pbd/gstdio_compat.h>
+#include "pbd/gstdio_compat.h"
 #include <glibmm/miscutils.h> /* for build_filename() */
 
 #include "pbd/error.h"
 #include "pbd/pathexpand.h"
 
 #include "ardour/types.h"
+#include "ardour/types_convert.h"
 #include "ardour/filesystem_paths.h"
 #include "ardour/session_configuration.h"
 #include "ardour/utils.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -54,7 +55,7 @@ XMLNode&
 SessionConfiguration::get_state ()
 {
        XMLNode* root;
-       LocaleGuard lg (X_("C"));
+       LocaleGuard lg;
 
        root = new XMLNode ("Ardour");
        root->add_child_nocopy (get_variables ());
@@ -67,7 +68,7 @@ XMLNode&
 SessionConfiguration::get_variables ()
 {
        XMLNode* node;
-       LocaleGuard lg (X_("C"));
+       LocaleGuard lg;
 
        node = new XMLNode ("Config");
 
@@ -159,7 +160,7 @@ SessionConfiguration::load_state ()
 
                XMLNode* node;
                if (((node = find_named_node (root, X_("Config"))) != 0)) {
-                       LocaleGuard lg (X_("C"));
+                       LocaleGuard lg;
                        set_variables(*node);
                        info << _("Loaded custom session defaults.") << endmsg;
                } else {