[gnome-photos/wip/rishi/collection: 5/20] share-point-manager: Use G_DECLARE_FINAL_TYPE



commit eebdabaf1007eb8a0e6482fc1fb0053170e141c2
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 5 02:40:33 2017 +0530

    share-point-manager: Use G_DECLARE_FINAL_TYPE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-share-point-manager.c |    5 -----
 src/photos-share-point-manager.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-share-point-manager.c b/src/photos-share-point-manager.c
index 89c74d7..4011937 100644
--- a/src/photos-share-point-manager.c
+++ b/src/photos-share-point-manager.c
@@ -45,11 +45,6 @@ struct _PhotosSharePointManager
   PhotosBaseManager *src_mngr;
 };
 
-struct _PhotosSharePointManagerClass
-{
-  PhotosBaseManagerClass parent_class;
-};
-
 
 G_DEFINE_TYPE (PhotosSharePointManager, photos_share_point_manager, PHOTOS_TYPE_BASE_MANAGER);
 
diff --git a/src/photos-share-point-manager.h b/src/photos-share-point-manager.h
index ae23739..008c2cb 100644
--- a/src/photos-share-point-manager.h
+++ b/src/photos-share-point-manager.h
@@ -31,19 +31,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_SHARE_POINT_MANAGER (photos_share_point_manager_get_type ())
-
-#define PHOTOS_SHARE_POINT_MANAGER(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_SHARE_POINT_MANAGER, PhotosSharePointManager))
-
-#define PHOTOS_IS_SHARE_POINT_MANAGER(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_SHARE_POINT_MANAGER))
-
-typedef struct _PhotosSharePointManager      PhotosSharePointManager;
-typedef struct _PhotosSharePointManagerClass PhotosSharePointManagerClass;
-
-GType                     photos_share_point_manager_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosSharePointManager, photos_share_point_manager, PHOTOS, SHARE_POINT_MANAGER, 
PhotosBaseManager);
 
 PhotosBaseManager        *photos_share_point_manager_dup_singleton      (void);
 


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