#include <Python.h>
}
+#include <cstring>
+
namespace ob {
static PyObject *obdict = NULL;
{
PyObject *val = PyDict_GetItemString(obdict, const_cast<char*>(name));
if (!(val && PyString_Check(val))) return false;
-
- *value = PyString_AsString(val);
+
+ std::string temp(PyString_AsString(val), PyString_Size(val));
+ *value = temp;
return true;
}
PyObject *obmodule = PyImport_AddModule("config");
obdict = PyModule_GetDict(obmodule);
- std::vector<otk::ustring> names;
- python_get_stringlist("DESKTOP_NAMES", &names);
+ python_get_stringlist("DESKTOP_NAMES", &desktop_names);
python_get_string("THEME", &theme);
num_desktops = 1;
}
+Config::~Config()
+{
+}
+
}