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-glyph.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/sp-glyph.cpp') diff --git a/src/sp-glyph.cpp b/src/sp-glyph.cpp index 2ab62c575..85c7beb4f 100644 --- a/src/sp-glyph.cpp +++ b/src/sp-glyph.cpp @@ -22,6 +22,16 @@ #include "document.h" #include +#include "sp-factory.h" + +namespace { + SPObject* createGlyph() { + return new SPGlyph(); + } + + bool glyphRegistered = SPFactory::instance().registerObject("svg:glyph", createGlyph); +} + G_DEFINE_TYPE(SPGlyph, sp_glyph, G_TYPE_OBJECT); static void sp_glyph_class_init(SPGlyphClass *gc) -- cgit v1.2.3