[gnome-photos] search-match-manager: Use G_DECLARE_FINAL_TYPE



commit 568761aa5bd8d00e61496b04593b6a7ef3487cd6
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 5 04:44:43 2017 +0530

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

 src/photos-search-match-manager.c |    5 -----
 src/photos-search-match-manager.h |   18 +++++-------------
 2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-search-match-manager.c b/src/photos-search-match-manager.c
index 43b1553..bb63032 100644
--- a/src/photos-search-match-manager.c
+++ b/src/photos-search-match-manager.c
@@ -41,11 +41,6 @@ struct _PhotosSearchMatchManager
   PhotosSearchController *srch_cntrlr;
 };
 
-struct _PhotosSearchMatchManagerClass
-{
-  PhotosBaseManagerClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-search-match-manager.h b/src/photos-search-match-manager.h
index 09066d4..bcbe197 100644
--- a/src/photos-search-match-manager.h
+++ b/src/photos-search-match-manager.h
@@ -31,19 +31,11 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_SEARCH_MATCH_MANAGER (photos_search_match_manager_get_type ())
-
-#define PHOTOS_SEARCH_MATCH_MANAGER(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_SEARCH_MATCH_MANAGER, PhotosSearchMatchManager))
-
-#define PHOTOS_IS_SEARCH_MATCH_MANAGER(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_SEARCH_MATCH_MANAGER))
-
-typedef struct _PhotosSearchMatchManager      PhotosSearchMatchManager;
-typedef struct _PhotosSearchMatchManagerClass PhotosSearchMatchManagerClass;
-
-GType                     photos_search_match_manager_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosSearchMatchManager,
+                      photos_search_match_manager,
+                      PHOTOS,
+                      SEARCH_MATCH_MANAGER,
+                      PhotosBaseManager);
 
 PhotosBaseManager        *photos_search_match_manager_new                (PhotosSearchController 
*srch_cntrlr);
 


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