diff options
Diffstat (limited to 'src/sp-switch.h')
| -rw-r--r-- | src/sp-switch.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sp-switch.h b/src/sp-switch.h index c2c98e3b3..f0442f27b 100644 --- a/src/sp-switch.h +++ b/src/sp-switch.h @@ -17,12 +17,16 @@ #include <stddef.h> #include <sigc++/connection.h> -#define SP_TYPE_SWITCH (CSwitch::getType()) +G_BEGIN_DECLS + +#define SP_TYPE_SWITCH (sp_switch_get_type()) #define SP_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_SWITCH, SPSwitch)) #define SP_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_SWITCH, SPSwitchClass)) #define SP_IS_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_SWITCH)) #define SP_IS_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_SWITCH)) +GType sp_switch_get_type() G_GNUC_CONST; + /* * Virtual methods of SPSwitch */ @@ -32,8 +36,6 @@ public: virtual ~CSwitch(); friend class SPSwitch; - - static GType getType(); virtual void onChildAdded(Inkscape::XML::Node *child); virtual void onChildRemoved(Inkscape::XML::Node *child); @@ -61,4 +63,6 @@ struct SPSwitch : public SPGroup { struct SPSwitchClass : public SPGroupClass { }; +G_END_DECLS + #endif |
