]> Dogcows Code - chaz/openbox/blobdiff - src/Resource.cc
starting openbox without an rc file now works. it makes an empty Xrm db instead of...
[chaz/openbox] / src / Resource.cc
index cff9bd38590ff934925d55b5805e3f7dca9a4bb0..2a678f89dafde320e75491ca3741599e424a84ba 100644 (file)
@@ -85,6 +85,13 @@ bool Resource::load() {
   return true;
 }
 
+void Resource::create() {
+  if (m_database != NULL)
+    XrmDestroyDatabase(m_database);
+  m_modified = false;
+  ASSERT(NULL != (m_database = XrmGetStringDatabase("")));
+}
+
 void Resource::setValue(const std::string &rname, bool value) {
   ASSERT(m_database != NULL);
 
This page took 0.024161 seconds and 4 git commands to generate.