diff options
Diffstat (limited to 'src/sp-flowregion.cpp')
| -rw-r--r-- | src/sp-flowregion.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sp-flowregion.cpp b/src/sp-flowregion.cpp index 29ce4e7a9..bc9f6aeda 100644 --- a/src/sp-flowregion.cpp +++ b/src/sp-flowregion.cpp @@ -27,6 +27,21 @@ static void sp_flowregion_init (SPFlowregion *group); static void sp_flowregion_dispose (GObject *object); +#include "sp-factory.h" + +namespace { + SPObject* createFlowregion() { + return new SPFlowregion(); + } + + SPObject* createFlowregionExclude() { + return new SPFlowregionExclude(); + } + + bool flowregionRegistered = SPFactory::instance().registerObject("svg:flowRegion", createFlowregion); + bool flowregionExcludeRegistered = SPFactory::instance().registerObject("svg:flowRegionExclude", createFlowregionExclude); +} + G_DEFINE_TYPE(SPFlowregion, sp_flowregion, G_TYPE_OBJECT); static void sp_flowregionexclude_init (SPFlowregionExclude *group); |
