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-path.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/sp-path.cpp') diff --git a/src/sp-path.cpp b/src/sp-path.cpp index 132415e51..bc6a2cb21 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -51,6 +51,17 @@ #define noPATH_VERBOSE +#include "sp-factory.h" + +namespace { + SPObject* createPath() { + return new SPPath(); + } + + bool pathRegistered = SPFactory::instance().registerObject("svg:path", createPath); +} + + static void sp_path_finalize(GObject *obj); G_DEFINE_TYPE(SPPath, sp_path, G_TYPE_OBJECT); -- cgit v1.2.3