Code

DBUS. Patch for Bug #696062, dbus builds no more.
[inkscape.git] / src / extension / dbus / dbus-init.cpp
index 253d6b9383c4e7808fa2d4de49390c706c7d8410..2ae606940d6736c4a3c9d9416f698a17ab4cd449 100644 (file)
@@ -106,10 +106,10 @@ init_document (void) {
         DBusGProxy *proxy;
        SPDocument *doc;
 
-       doc = sp_document_new(NULL, 1, TRUE);
+        doc = SPDocument::createNewDoc(NULL, 1, TRUE);
 
         std::string name("/org/inkscape/");
-       name.append(doc->name);
+       name.append(doc->getName());
         std::replace(name.begin(), name.end(), ' ', '_');
 
         connection = dbus_get_connection();