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-switch.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-switch.cpp')
| -rw-r--r-- | src/sp-switch.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-switch.cpp b/src/sp-switch.cpp index fe5ae1db5..7dd5bf669 100644 --- a/src/sp-switch.cpp +++ b/src/sp-switch.cpp @@ -25,6 +25,16 @@ #include <sigc++/functors/ptr_fun.h> #include <sigc++/adaptors/bind.h> +#include "sp-factory.h" + +namespace { + SPObject* createSwitch() { + return new SPSwitch(); + } + + bool switchRegistered = SPFactory::instance().registerObject("svg:switch", createSwitch); +} + G_DEFINE_TYPE(SPSwitch, sp_switch, G_TYPE_OBJECT); static void |
