#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);
if (!python_get_string("TITLEBAR_LAYOUT", &titlebar_layout))
titlebar_layout = "NTIMC";
- printf("LAYOUT %s\n", titlebar_layout.c_str());
if (!python_get_long("DOUBLE_CLICK_DELAY", &double_click_delay))
double_click_delay = 300;
num_desktops = 1;
}
+Config::~Config()
+{
+}
+
}