summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 016384274..be3ff1e7d 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -658,7 +658,7 @@ inkscape_load_config (const gchar *filename, Inkscape::XML::Document *config, co
return false;
}
- Inkscape::XML::Node *root = sp_repr_document_root (doc);
+ Inkscape::XML::Node *root = doc->root();
if (strcmp (root->name(), "inkscape")) {
gchar *safeFn = Inkscape::IO::sanitizeString(fn);
GtkWidget *w = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, e_notsp, safeFn, warn);
@@ -725,7 +725,7 @@ inkscape_get_repr (Inkscape::Application *inkscape, const gchar *key)
return NULL;
}
- Inkscape::XML::Node *repr = sp_repr_document_root (Inkscape::Preferences::get());
+ Inkscape::XML::Node *repr = Inkscape::Preferences::get()->root();
if (!repr) return NULL;
g_assert (!(strcmp (repr->name(), "inkscape")));
@@ -1410,7 +1410,7 @@ profile_path(const char *filename)
Inkscape::XML::Node *
inkscape_get_menus (Inkscape::Application * inkscape)
{
- Inkscape::XML::Node *repr = sp_repr_document_root (inkscape->menus);
+ Inkscape::XML::Node *repr = inkscape->menus->root();
g_assert (!(strcmp (repr->name(), "inkscape")));
return repr->firstChild();
}