From 03c942c587504ffbc78eed44bb32fded3286ab91 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Tue, 27 Feb 2007 15:20:01 +0000 Subject: get rid of sp_repr_document_root and (commented) sp_repr_duplicate (bzr r2461) --- src/inkscape.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inkscape.cpp') 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(); } -- cgit v1.2.3