From d1af3566872dfff2aeec84859c87f1f8d13f79df Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Tue, 2 Apr 2013 19:14:36 +0200 Subject: Registered classes with new factory. Hkern, Vkern and FeFuncX have to be rewritten, as they aren't real classes. (bzr r11608.1.69) --- src/sp-switch.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/sp-switch.cpp') 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 #include +#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 -- cgit v1.2.3