[gnome-online-accounts/wip/rishi/port-to-g-declare] alarm: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/port-to-g-declare] alarm: Use G_DECLARE_FINAL_TYPE
- Date: Fri, 6 Dec 2019 16:38:12 +0000 (UTC)
commit afdfd842547210d3a03f295b29cd85944b2127d3
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Dec 6 16:48:55 2019 +0100
alarm: Use G_DECLARE_FINAL_TYPE
https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/40
src/goaidentity/goaalarm.c | 5 -----
src/goaidentity/goaalarm.h | 7 +------
2 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/goaidentity/goaalarm.c b/src/goaidentity/goaalarm.c
index d42cf54e..b0c2ef7d 100644
--- a/src/goaidentity/goaalarm.c
+++ b/src/goaidentity/goaalarm.c
@@ -56,11 +56,6 @@ struct _GoaAlarm
GInputStream *stream; /* NULL, unless using timerfd */
};
-struct _GoaAlarmClass
-{
- GObjectClass parent_class;
-};
-
enum
{
FIRED,
diff --git a/src/goaidentity/goaalarm.h b/src/goaidentity/goaalarm.h
index 8c44d52e..912bc25f 100644
--- a/src/goaidentity/goaalarm.h
+++ b/src/goaidentity/goaalarm.h
@@ -25,12 +25,7 @@
G_BEGIN_DECLS
#define GOA_TYPE_ALARM (goa_alarm_get_type ())
-#define GOA_ALARM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOA_TYPE_ALARM, GoaAlarm))
-#define GOA_IS_ALARM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GOA_TYPE_ALARM))
-typedef struct _GoaAlarm GoaAlarm;
-typedef struct _GoaAlarmClass GoaAlarmClass;
-
-GType goa_alarm_get_type (void);
+G_DECLARE_FINAL_TYPE (GoaAlarm, goa_alarm, GOA, ALARM, GObject);
GoaAlarm *goa_alarm_new (GDateTime *time);
GDateTime *goa_alarm_get_time (GoaAlarm *alarm);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]