summaryrefslogtreecommitdiffstats
path: root/src/sp-switch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-switch.cpp')
-rw-r--r--src/sp-switch.cpp10
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