diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-10-08 06:43:46 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-10-08 06:43:46 +0000 |
| commit | 89558cc7cec3871020dfe2e84cb4a5d87e362864 (patch) | |
| tree | 98426c0d4845d58ec3e4aa2d1c7aa10acdb7d457 /src/document.cpp | |
| parent | tab handles in gradient tool only when they exist (diff) | |
| download | inkscape-89558cc7cec3871020dfe2e84cb4a5d87e362864.tar.gz inkscape-89558cc7cec3871020dfe2e84cb4a5d87e362864.zip | |
Adding profile manager and user-visible drop-down in CMS picker
(bzr r3862)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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); |
