[gnome-photos] tracker-change-monitor: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] tracker-change-monitor: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 26 Sep 2017 13:59:42 +0000 (UTC)
commit 4fb51000a323f7444fc1378176b528949bd60f80
Author: Umang Jain <mailumangjain gmail com>
Date: Wed Sep 6 01:04:00 2017 +0530
tracker-change-monitor: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-tracker-change-monitor.c | 5 -----
src/photos-tracker-change-monitor.h | 18 +++++-------------
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-tracker-change-monitor.c b/src/photos-tracker-change-monitor.c
index 75b9fb2..d8da8af 100644
--- a/src/photos-tracker-change-monitor.c
+++ b/src/photos-tracker-change-monitor.c
@@ -47,11 +47,6 @@ struct _PhotosTrackerChangeMonitor
guint pending_events_id;
};
-struct _PhotosTrackerChangeMonitorClass
-{
- GObjectClass parent_class;
-};
-
enum
{
CHANGES_PENDING,
diff --git a/src/photos-tracker-change-monitor.h b/src/photos-tracker-change-monitor.h
index 69a04d3..1abb353 100644
--- a/src/photos-tracker-change-monitor.h
+++ b/src/photos-tracker-change-monitor.h
@@ -30,19 +30,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_TRACKER_CHANGE_MONITOR (photos_tracker_change_monitor_get_type ())
-
-#define PHOTOS_TRACKER_CHANGE_MONITOR(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_TRACKER_CHANGE_MONITOR, PhotosTrackerChangeMonitor))
-
-#define PHOTOS_IS_TRACKER_CHANGE_MONITOR(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_TRACKER_CHANGE_MONITOR))
-
-typedef struct _PhotosTrackerChangeMonitor PhotosTrackerChangeMonitor;
-typedef struct _PhotosTrackerChangeMonitorClass PhotosTrackerChangeMonitorClass;
-
-GType photos_tracker_change_monitor_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosTrackerChangeMonitor,
+ photos_tracker_change_monitor,
+ PHOTOS,
+ TRACKER_CHANGE_MONITOR,
+ GObject);
PhotosTrackerChangeMonitor *photos_tracker_change_monitor_dup_singleton (GCancellable *cancellable,
GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]