diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-02 17:14:36 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-02 17:14:36 +0000 |
| commit | d1af3566872dfff2aeec84859c87f1f8d13f79df (patch) | |
| tree | f52de634baaf9cce333012b29437979881c7ac22 /src/sp-spiral.cpp | |
| parent | Added new factory for SPObject tree objects. (diff) | |
| download | inkscape-d1af3566872dfff2aeec84859c87f1f8d13f79df.tar.gz inkscape-d1af3566872dfff2aeec84859c87f1f8d13f79df.zip | |
Registered classes with new factory. Hkern, Vkern and FeFuncX have to be rewritten, as they aren't real classes.
(bzr r11608.1.69)
Diffstat (limited to 'src/sp-spiral.cpp')
| -rw-r--r-- | src/sp-spiral.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sp-spiral.cpp b/src/sp-spiral.cpp index eec5e953e..dabd9cdd0 100644 --- a/src/sp-spiral.cpp +++ b/src/sp-spiral.cpp @@ -28,6 +28,18 @@ #include "sp-spiral.h" + +#include "sp-factory.h" + +namespace { + SPObject* createSpiral() { + return new SPSpiral(); + } + + bool spiralRegistered = SPFactory::instance().registerObject("spiral", createSpiral); +} + + G_DEFINE_TYPE(SPSpiral, sp_spiral, G_TYPE_OBJECT); /** |
