[gnome-photos] search-type-manager: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] search-type-manager: Use G_DECLARE_FINAL_TYPE
- Date: Fri, 8 Sep 2017 18:13:54 +0000 (UTC)
commit 2c6563aa53f1a3f954df51876da3de1495274d18
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Sep 5 04:50:06 2017 +0530
search-type-manager: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-search-type-manager.c | 5 -----
src/photos-search-type-manager.h | 18 +++++-------------
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-search-type-manager.c b/src/photos-search-type-manager.c
index c42ae83..ac8a3d8 100644
--- a/src/photos-search-type-manager.c
+++ b/src/photos-search-type-manager.c
@@ -39,11 +39,6 @@ struct _PhotosSearchTypeManager
PhotosBaseManager parent_instance;
};
-struct _PhotosSearchTypeManagerClass
-{
- PhotosBaseManagerClass parent_class;
-};
-
G_DEFINE_TYPE (PhotosSearchTypeManager, photos_search_type_manager, PHOTOS_TYPE_BASE_MANAGER);
diff --git a/src/photos-search-type-manager.h b/src/photos-search-type-manager.h
index 277ecf7..0e501c2 100644
--- a/src/photos-search-type-manager.h
+++ b/src/photos-search-type-manager.h
@@ -30,19 +30,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_SEARCH_TYPE_MANAGER (photos_search_type_manager_get_type ())
-
-#define PHOTOS_SEARCH_TYPE_MANAGER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_SEARCH_TYPE_MANAGER, PhotosSearchTypeManager))
-
-#define PHOTOS_IS_SEARCH_TYPE_MANAGER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_SEARCH_TYPE_MANAGER))
-
-typedef struct _PhotosSearchTypeManager PhotosSearchTypeManager;
-typedef struct _PhotosSearchTypeManagerClass PhotosSearchTypeManagerClass;
-
-GType photos_search_type_manager_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosSearchTypeManager,
+ photos_search_type_manager,
+ PHOTOS,
+ SEARCH_TYPE_MANAGER,
+ PhotosBaseManager);
PhotosBaseManager *photos_search_type_manager_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]