diff options
| author | MenTaLguY <mental@rydia.net> | 2007-02-27 15:20:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-02-27 15:20:01 +0000 |
| commit | 03c942c587504ffbc78eed44bb32fded3286ab91 (patch) | |
| tree | 0b209cd63a3977e8dd9d3e1293dce4e295fd89a9 /src/inkscape.cpp | |
| parent | increase padding (diff) | |
| download | inkscape-03c942c587504ffbc78eed44bb32fded3286ab91.tar.gz inkscape-03c942c587504ffbc78eed44bb32fded3286ab91.zip | |
get rid of sp_repr_document_root and (commented) sp_repr_duplicate
(bzr r2461)
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 6 |
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(); } |
