summaryrefslogtreecommitdiff
path: root/panels/wacom/cc-wacom-panel.h
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2018-06-03 09:42:43 +0400
committerRobert Ancell <robert.ancell@gmail.com>2018-08-02 21:48:02 +0000
commitaeca65c729e83bde85fa0c9e8a5e3a695dac97c2 (patch)
treed9229390a23177979d6f139dc210ccf2060e0b05 /panels/wacom/cc-wacom-panel.h
parent09465579b717ece847f00a16c97727b566e70851 (diff)
downloadgnome-control-center-aeca65c729e83bde85fa0c9e8a5e3a695dac97c2.tar.gz
wacom: Replace GObject boilerplate with G_DECLARE_TYPE
Diffstat (limited to 'panels/wacom/cc-wacom-panel.h')
-rw-r--r--panels/wacom/cc-wacom-panel.h41
1 files changed, 2 insertions, 39 deletions
diff --git a/panels/wacom/cc-wacom-panel.h b/panels/wacom/cc-wacom-panel.h
index a5b1e758b..b85bac4c9 100644
--- a/panels/wacom/cc-wacom-panel.h
+++ b/panels/wacom/cc-wacom-panel.h
@@ -26,48 +26,11 @@
G_BEGIN_DECLS
-#define CC_TYPE_WACOM_PANEL cc_wacom_panel_get_type()
-
-#define CC_WACOM_PANEL(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- CC_TYPE_WACOM_PANEL, CcWacomPanel))
-
-#define CC_WACOM_PANEL_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), \
- CC_TYPE_WACOM_PANEL, CcWacomPanelClass))
-
-#define CC_IS_WACOM_PANEL(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- CC_TYPE_WACOM_PANEL))
-
-#define CC_IS_WACOM_PANEL_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), \
- CC_TYPE_WACOM_PANEL))
-
-#define CC_WACOM_PANEL_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), \
- CC_TYPE_WACOM_PANEL, CcWacomPanelClass))
-
-typedef struct _CcWacomPanel CcWacomPanel;
-typedef struct _CcWacomPanelClass CcWacomPanelClass;
-typedef struct _CcWacomPanelPrivate CcWacomPanelPrivate;
-
-struct _CcWacomPanel
-{
- CcPanel parent;
-
- CcWacomPanelPrivate *priv;
-};
-
-struct _CcWacomPanelClass
-{
- CcPanelClass parent_class;
-};
+#define CC_TYPE_WACOM_PANEL (cc_wacom_panel_get_type ())
+G_DECLARE_FINAL_TYPE (CcWacomPanel, cc_wacom_panel, CC, WACOM_PANEL, CcPanel)
void cc_wacom_panel_static_init_func (void);
-GType cc_wacom_panel_get_type (void) G_GNUC_CONST;
-
void cc_wacom_panel_switch_to_panel (CcWacomPanel *self,
const char *panel);