[gnome-photos] tracker-collections-controller: Use G_DECLARE_FINAL_TYPE



commit 28f33ece01b7dc700543ee36e2c4b952a76beb85
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 5 01:24:21 2017 +0530

    tracker-collections-controller: Use G_DECLARE_FINAL_TYPE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-tracker-collections-controller.c |    5 -----
 src/photos-tracker-collections-controller.h |   18 +++++-------------
 2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-tracker-collections-controller.c b/src/photos-tracker-collections-controller.c
index e1456d4..ada5add 100644
--- a/src/photos-tracker-collections-controller.c
+++ b/src/photos-tracker-collections-controller.c
@@ -39,11 +39,6 @@ struct _PhotosTrackerCollectionsController
   PhotosOffsetController *offset_cntrlr;
 };
 
-struct _PhotosTrackerCollectionsControllerClass
-{
-  PhotosTrackerControllerClass parent_class;
-};
-
 
 G_DEFINE_TYPE_WITH_CODE (PhotosTrackerCollectionsController,
                          photos_tracker_collections_controller,
diff --git a/src/photos-tracker-collections-controller.h b/src/photos-tracker-collections-controller.h
index eb2a538..131b486 100644
--- a/src/photos-tracker-collections-controller.h
+++ b/src/photos-tracker-collections-controller.h
@@ -26,19 +26,11 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_TRACKER_COLLECTIONS_CONTROLLER (photos_tracker_collections_controller_get_type ())
-
-#define PHOTOS_TRACKER_COLLECTIONS_CONTROLLER(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_TRACKER_COLLECTIONS_CONTROLLER, PhotosTrackerCollectionsController))
-
-#define PHOTOS_IS_TRACKER_COLLECTIONS_CONTROLLER(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_TRACKER_COLLECTIONS_CONTROLLER))
-
-typedef struct _PhotosTrackerCollectionsController      PhotosTrackerCollectionsController;
-typedef struct _PhotosTrackerCollectionsControllerClass PhotosTrackerCollectionsControllerClass;
-
-GType                     photos_tracker_collections_controller_get_type          (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosTrackerCollectionsController,
+                      photos_tracker_collections_controller,
+                      PHOTOS,
+                      TRACKER_COLLECTIONS_CONTROLLER,
+                      PhotosTrackerController);
 
 PhotosTrackerController  *photos_tracker_collections_controller_dup_singleton     (void);
 


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