[gnome-control-center] notifications: Replace GObject boilerplace with G_DECLARE_TYPE



commit 67a94dfee9357e68e4ae47cc8bce81f50bb16561
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue May 29 15:38:31 2018 +1200

    notifications: Replace GObject boilerplace with G_DECLARE_TYPE

 panels/notifications/cc-notifications-panel.h | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/panels/notifications/cc-notifications-panel.h b/panels/notifications/cc-notifications-panel.h
index 50365af8b..6d6bcb108 100644
--- a/panels/notifications/cc-notifications-panel.h
+++ b/panels/notifications/cc-notifications-panel.h
@@ -26,13 +26,8 @@
 G_BEGIN_DECLS
 
 #define CC_TYPE_NOTIFICATIONS_PANEL  (cc_notifications_panel_get_type ())
-#define CC_NOTIFICATIONS_PANEL(o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), CC_TYPE_NOTIFICATIONS_PANEL, 
CcNotificationsPanel))
-#define GC_IS_NOTIFICATIONS_PANEL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CC_TYPE_NOTIFICATIONS_PANEL))
 
-typedef struct _CcNotificationsPanel CcNotificationsPanel;
-typedef struct _CcNotificationsPanelClass CcNotificationsPanelClass;
-
-GType cc_notifications_panel_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (CcNotificationsPanel, cc_notifications_panel, CC, NOTIFICATIONS_PANEL, CcPanel)
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]