diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2013-01-17 00:59:37 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2013-01-17 00:59:37 +0000 |
| commit | cd0794c0d76a46a0ae47b6c450167015ee41bc35 (patch) | |
| tree | 2f0c97f37dadbda4122e622e6aa249294a978336 /src/sp-switch.h | |
| parent | extensions. dxf output. set flag if LWPOLYLINE is closed (Bug 1098283) (diff) | |
| download | inkscape-cd0794c0d76a46a0ae47b6c450167015ee41bc35.tar.gz inkscape-cd0794c0d76a46a0ae47b6c450167015ee41bc35.zip | |
Cleanup more GObject type definitions
(bzr r12034)
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 |
