[gnome-photos] share-point-manager: Use G_DECLARE_FINAL_TYPE
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] share-point-manager: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 6 Sep 2017 15:59:09 +0000 (UTC)
commit bd46de18c9c819b304bb3f317e245caf830e0178
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]