From 89558cc7cec3871020dfe2e84cb4a5d87e362864 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Mon, 8 Oct 2007 06:43:46 +0000 Subject: Adding profile manager and user-visible drop-down in CMS picker (bzr r3862) --- src/document.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/document.cpp') diff --git a/src/document.cpp b/src/document.cpp index 2a482648f..cfbcf95fe 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -54,6 +54,7 @@ #include "libnr/nr-rect.h" #include "sp-item-group.h" #include "perspective3d.h" +#include "profile-manager.h" #include "display/nr-arena-item.h" @@ -132,6 +133,9 @@ SPDocument::SPDocument() { priv = p; + // Once things are set, hook in the manager + profileManager = new Inkscape::ProfileManager(this); + // XXX only for testing! priv->undoStackObservers.add(p->console_output_undo_observer); } @@ -139,6 +143,12 @@ SPDocument::SPDocument() { SPDocument::~SPDocument() { collectOrphans(); + // kill/unhook this first + if ( profileManager ) { + delete profileManager; + profileManager = 0; + } + if (priv) { if (priv->partial) { sp_repr_free_log(priv->partial); -- cgit v1.2.3