diff options
Diffstat (limited to 'src/document-private.h')
| -rw-r--r-- | src/document-private.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/document-private.h b/src/document-private.h index a5033b3c2..a4a2abd77 100644 --- a/src/document-private.h +++ b/src/document-private.h @@ -15,6 +15,8 @@ */ #include <map> +#include <set> +#include <string> #include <stddef.h> #include <sigc++/sigc++.h> #include "xml/event-fns.h" @@ -40,8 +42,10 @@ struct SPDocumentPrivate { typedef std::map<GQuark, SPDocument::IDChangedSignal> IDChangedSignalMap; typedef std::map<GQuark, SPDocument::ResourcesChangedSignal> ResourcesChangedSignalMap; - GHashTable *iddef; /**< Dictionary of id -> SPObject mappings */ - GHashTable *reprdef; /**< Dictionary of Inkscape::XML::Node -> SPObject mappings */ + std::map<std::string, SPObject *> iddef; + std::map<Inkscape::XML::Node *, SPObject *> reprdef; + //GHashTable *iddef; /**< Dictionary of id -> SPObject mappings */ + //GHashTable *reprdef; /**< Dictionary of Inkscape::XML::Node -> SPObject mappings */ unsigned long serial; @@ -50,7 +54,8 @@ struct SPDocumentPrivate { /* Resources */ /* It is GHashTable of GSLists */ - GHashTable *resources; + std::map<std::string, std::set<SPObject *> > resources; + //GHashTable *resources; ResourcesChangedSignalMap resources_changed_signals; sigc::signal<void> destroySignal; |
