[gnome-photos] offset-overview-controller: Use G_DECLARE_FINAL_TYPE



commit 254d3fa185d3dfc459ef3daca43c0c032ed40b4a
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Mar 15 08:52:21 2017 +0100

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

 src/photos-offset-overview-controller.c |    5 -----
 src/photos-offset-overview-controller.h |   18 +++++-------------
 2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-offset-overview-controller.c b/src/photos-offset-overview-controller.c
index fc4704f..357333c 100644
--- a/src/photos-offset-overview-controller.c
+++ b/src/photos-offset-overview-controller.c
@@ -37,11 +37,6 @@ struct _PhotosOffsetOverviewController
   PhotosOffsetController parent_instance;
 };
 
-struct _PhotosOffsetOverviewControllerClass
-{
-  PhotosOffsetControllerClass parent_class;
-};
-
 
 G_DEFINE_TYPE (PhotosOffsetOverviewController, photos_offset_overview_controller, 
PHOTOS_TYPE_OFFSET_CONTROLLER);
 
diff --git a/src/photos-offset-overview-controller.h b/src/photos-offset-overview-controller.h
index 9978e4d..e6d8634 100644
--- a/src/photos-offset-overview-controller.h
+++ b/src/photos-offset-overview-controller.h
@@ -30,19 +30,11 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_OFFSET_OVERVIEW_CONTROLLER (photos_offset_overview_controller_get_type ())
-
-#define PHOTOS_OFFSET_OVERVIEW_CONTROLLER(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_OFFSET_OVERVIEW_CONTROLLER, PhotosOffsetOverviewController))
-
-#define PHOTOS_IS_OFFSET_OVERVIEW_CONTROLLER(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_OFFSET_OVERVIEW_CONTROLLER))
-
-typedef struct _PhotosOffsetOverviewController        PhotosOffsetOverviewController;
-typedef struct _PhotosOffsetOverviewControllerClass   PhotosOffsetOverviewControllerClass;
-
-GType                    photos_offset_overview_controller_get_type          (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOffsetOverviewController,
+                      photos_offset_overview_controller,
+                      PHOTOS,
+                      OFFSET_OVERVIEW_COTROLLER,
+                      PhotosOffsetController);
 
 PhotosOffsetController  *photos_offset_overview_controller_dup_singleton     (void);
 


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